Ensured that styled text doesn't contain non-keyword symbols as styles

This commit is contained in:
waldemar%netscape.com 2001-11-06 01:22:14 +00:00
Родитель c2620d3c43
Коммит ffaef3d56f
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -765,10 +765,11 @@
(let* ((first (first item))
(rest (rest item))
(depictor (styled-text-depictor first)))
(if depictor
(apply depictor markup-stream rest)
(depict-char-style (markup-stream first)
(depict-styled-text markup-stream rest)))))
(cond
(depictor (apply depictor markup-stream rest))
((keywordp first) (depict-char-style (markup-stream first)
(depict-styled-text markup-stream rest)))
(t (error "Bad depict-styled-text style: ~S" first)))))
((characterp item)
(depict-character markup-stream item))
(t (error "Bad depict-styled-text item: ~S" item)))))