From fc062c2d48b1fe875f72b4f9ded3564fc9bcd87e Mon Sep 17 00:00:00 2001 From: Zed <9434921+zedeus@users.noreply.github.com> Date: Wed, 10 Jul 2019 14:44:51 +0200 Subject: [PATCH] Fix tag termination for elements with no children (#103) --- karax/vdom.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/karax/vdom.nim b/karax/vdom.nim index 3310dca..56cf9e6 100644 --- a/karax/vdom.nim +++ b/karax/vdom.nim @@ -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("") proc `$`*(n: VNode): kstring =