зеркало из https://github.com/mozilla/pjs.git
Ensured that styled text doesn't contain non-keyword symbols as styles
This commit is contained in:
Родитель
c2620d3c43
Коммит
ffaef3d56f
|
@ -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)))))
|
||||
|
|
Загрузка…
Ссылка в новой задаче