diff --git a/cmd/tools/vdoc/vdoc.v b/cmd/tools/vdoc/vdoc.v index 5fccfeb2e4..65754c9e12 100644 --- a/cmd/tools/vdoc/vdoc.v +++ b/cmd/tools/vdoc/vdoc.v @@ -41,9 +41,8 @@ const ( favicons_path = os.join_path(res_path, 'favicons') vexe = pref.vexe_path() vroot = os.dir(vexe) - html_content = ' - - + html_content = ' +
@@ -85,7 +84,7 @@ const ($hlighted_code
')
}
- dnw.writeln('$md_content\n')
+ for line_content in md_content.split('\n') {
+ dnw.write('\n${tabs[2]}$line_content')
+ }
+ dnw.writeln('\n${tabs[1]}')
dnw_str := dnw.str()
defer {
dnw.free()
@@ -559,12 +561,11 @@ fn (cfg DocConfig) gen_html(idx int) string {
header_name).replace('{{ version }}', version).replace('{{ light_icon }}', cfg.assets['light_icon']).replace('{{ dark_icon }}',
cfg.assets['dark_icon']).replace('{{ menu_icon }}', cfg.assets['menu_icon']).replace('{{ head_assets }}',
if cfg.inline_assets {
- '\n \n \n '
+ '\n${tabs[0]}\n${tabs[0]}\n${tabs[0]}'
} else {
- '\n \n \n\n '
+ '\n${tabs[0]}\n${tabs[0]}\n${tabs[0]}'
}).replace('{{ toc_links }}', if cfg.is_multi || cfg.docs.len > 1 {
modules_toc_str
} else {