Fix tag termination for elements with no children (#103)
This commit is contained in:
parent
5e9709bc5b
commit
fc062c2d48
1 changed files with 4 additions and 1 deletions
|
|
@ -425,7 +425,10 @@ proc add*(result: var string, n: VNode, indent = 0, indWidth = 2) =
|
|||
result.add(kind)
|
||||
result.add(">")
|
||||
else:
|
||||
result.add(" />")
|
||||
result.add(">")
|
||||
result.add("</")
|
||||
result.add(kind)
|
||||
result.add(">")
|
||||
|
||||
|
||||
proc `$`*(n: VNode): kstring =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue