Improve render function
This commit is contained in:
parent
5a63bf8154
commit
6a6e3231e7
2 changed files with 21 additions and 15 deletions
src
|
@ -63,9 +63,10 @@
|
|||
(let ((type-str (string-downcase type)))
|
||||
(if children
|
||||
(format stream
|
||||
(if (rest children)
|
||||
"~@<<~a~a>~2I~:@_~<~@{~a~^~:@_~}~:>~0I~:@_</~a>~:>"
|
||||
"~@<<~a~a>~2I~:_~<~a~^~:@_~:>~0I~_</~a>~:>")
|
||||
(if (and (null (rest children))
|
||||
(typep (first children) 'string))
|
||||
"~@<<~a~a>~2I~:_~<~a~^~:@_~:>~0I~_</~a>~:>"
|
||||
"~@<<~a~a>~2I~:@_~<~@{~a~^~:@_~}~:>~0I~:@_</~a>~:>")
|
||||
type-str
|
||||
(props->string props)
|
||||
children
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue