diff --git a/nimutils/rope_htmlrender.nim b/nimutils/rope_htmlrender.nim index 912598f..d3823d0 100644 --- a/nimutils/rope_htmlrender.nim +++ b/nimutils/rope_htmlrender.nim @@ -83,12 +83,12 @@ proc toHtml*(r: Rope, indent = 0): string = var cells: seq[string] if r.cells.len() != 0: for item in r.cells: - var cell = item.toHtml() + var cell = item.toHtml().strip() if cell.startswith("") or cell.startswith(""): cells.add(cell) else: cells.add(element("td", cell)) - result = cells.join("\n") + result = element("tr", cells.join("\n")) for item in r.siblings: result &= item.toHtml()