about summary refs log tree commit diff stats
path: root/adapter/format
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-24 15:33:36 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-24 15:33:36 +0100
commitac7a51dbd9652e7a90b1a273a1a08c536f0f1331 (patch)
tree79d655985d7d1067ac874e41e060cfabc7b17183 /adapter/format
parentfb21b1e4f0ee0e55e9556bf1f399d00d5eae26e4 (diff)
downloadchawan-ac7a51dbd9652e7a90b1a273a1a08c536f0f1331.tar.gz
ansi2html: add newline after pre tag
it doesn't change anything in the dom, but this way it's easier to
compose with other commands
Diffstat (limited to 'adapter/format')
-rw-r--r--adapter/format/ansi2html.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/format/ansi2html.nim b/adapter/format/ansi2html.nim
index 078582df..95ce0fea 100644
--- a/adapter/format/ansi2html.nim
+++ b/adapter/format/ansi2html.nim
@@ -362,7 +362,7 @@ proc main() =
   let standalone = paramCount() >= 1 and paramStr(1) == "-s"
   if standalone:
     state.puts("<!DOCTYPE html>\n<body>")
-  state.puts("<pre style='margin: 0'>")
+  state.puts("<pre style='margin: 0'>\n")
   ps.setBlocking(false)
   var buffer {.noinit.}: array[4096, char]
   var selector = newSelector[int]()