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()