Fix tag termination for elements with no children (#103)

This commit is contained in:
Zed 2019-07-10 14:44:51 +02:00 • committed by Andreas Rumpf
commit fc062c2d48

View file

@ -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 =