diff options
Diffstat (limited to 'src/sdp/ao_output_debugs.d')
-rw-r--r-- | src/sdp/ao_output_debugs.d | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/sdp/ao_output_debugs.d b/src/sdp/ao_output_debugs.d index 414e851..aff30e8 100644 --- a/src/sdp/ao_output_debugs.d +++ b/src/sdp/ao_output_debugs.d @@ -660,13 +660,18 @@ template SiSUdebugs() { } } } + auto min_repeat_number = 66; + auto char_repeat_number = (doc_matters.dochead_meta["title"]["full"].length + doc_matters.dochead_meta["creator"]["author"].length + 4); + char_repeat_number = (char_repeat_number > min_repeat_number) + ? char_repeat_number + : min_repeat_number; writefln( - "%s\n\"%s\", %s\n%s\n%s\n%s%10d\n%s%10d\n%s%10d\n%s%10d\n%s%10d\n%s%10d\n%s%10d\n%s%10d\n(%s: %s)", - "---------------------------------", + "%s\n\"%s\", %s\n%s\n%s\n%s%10d\n%s%10d\n%s%10d\n%s%10d\n%s%10d\n%s%10d\n%s%10d\n%s%10d\n(%s: %s)\n%s", + markup.repeat_character_by_number_provided("-", char_repeat_number), doc_matters.dochead_meta["title"]["full"], doc_matters.dochead_meta["creator"]["author"], doc_matters.source_filename, - "---------------------------------", + markup.repeat_character_by_number_provided("-", char_repeat_number), "length toc array: ", to!int(contents["toc_seg"].length), "length contents array: ", @@ -695,6 +700,7 @@ template SiSUdebugs() { : 0, __FILE__, __LINE__, + markup.repeat_character_by_number_provided("-", min_repeat_number), ); } } |