diff options
author | Ralph Amissah <ralph@amissah.com> | 2017-01-30 14:19:27 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:14 -0400 |
commit | 648492549fc290c416d870040c9097cc53335d44 (patch) | |
tree | 2f6b7f4b2cf6ae31fea4ca9f94b4b80f0445b42a /src/sdp/ao_output_debugs.d | |
parent | org file reorganise (diff) |
screen output
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), ); } } |