From 90839a1b763e5a79d391fd2a1f47944f41cfb34c Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 2 Jan 2021 23:17:54 +0200 Subject: [PATCH] vdoc: fix markdown content indentation --- cmd/tools/vdoc/vdoc.v | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/tools/vdoc/vdoc.v b/cmd/tools/vdoc/vdoc.v index 18ba139548..bc6d477f16 100644 --- a/cmd/tools/vdoc/vdoc.v +++ b/cmd/tools/vdoc/vdoc.v @@ -420,10 +420,8 @@ fn doc_node_html(dd doc.DocNode, link string, head bool, tb &table.Table) string if !head && dd.content.len > 0 { dnw.writeln('
$hlighted_code
') } - for line_content in md_content.split('\n') { - dnw.write('\n${tabs[2]}$line_content') - } - dnw.writeln('\n${tabs[1]}') + // do not mess with md_content further, its formatting is important, just output it 1:1 ! + dnw.writeln('$md_content\n') dnw_str := dnw.str() defer { dnw.free()