From cb96a096cbbecb655e98aadc77a881b544886cd2 Mon Sep 17 00:00:00 2001 From: xackus <14938807+xackus@users.noreply.github.com> Date: Thu, 5 Dec 2019 22:39:13 +0100 Subject: [PATCH] docs: fix duplicate closing tag generation --- doc/docgen.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/docgen.zig b/doc/docgen.zig index 2158cdccae..430d6eb1e2 100644 --- a/doc/docgen.zig +++ b/doc/docgen.zig @@ -1427,10 +1427,7 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var } const escaped_stderr = try escapeHtml(allocator, result.stderr); const colored_stderr = try termColor(allocator, escaped_stderr); - try out.print("\n{}\n", colored_stderr); - if (!code.is_inline) { - try out.print("\n"); - } + try out.print("\n{}", colored_stderr); } else { _ = exec(allocator, &env_map, build_args.toSliceConst()) catch return parseError(tokenizer, code.source_token, "example failed to compile"); }