aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao_output_debugs.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/ao_output_debugs.d')
-rw-r--r--src/sdp/ao_output_debugs.d46
1 files changed, 5 insertions, 41 deletions
diff --git a/src/sdp/ao_output_debugs.d b/src/sdp/ao_output_debugs.d
index 4800591..7764af4 100644
--- a/src/sdp/ao_output_debugs.d
+++ b/src/sdp/ao_output_debugs.d
@@ -14,46 +14,10 @@ template SiSUoutputDebugs() {
bool[string] opt_action_bool
) {
mixin RgxInit;
+ mixin InternalMarkup;
auto rgx = Rgx();
+ auto markup = InlineMarkup();
string key;
- string indent_amount_;
- auto indented_(int indent) {
- switch (indent) {
- case 0:
- indent_amount_="";
- break;
- case 1:
- indent_amount_=" ";
- break;
- case 2:
- indent_amount_=" ";
- break;
- case 3:
- indent_amount_=" ";
- break;
- case 4:
- indent_amount_=" ";
- break;
- case 5:
- indent_amount_=" ";
- break;
- case 6:
- indent_amount_=" ";
- break;
- case 7:
- indent_amount_=" ";
- break;
- case 8:
- indent_amount_=" ";
- break;
- case 9:
- indent_amount_=" ";
- break;
- default:
- break;
- }
- return indent_amount_;
- }
struct BookIndexReport {
int mkn, skn;
auto bookindex_report_sorted(
@@ -123,12 +87,12 @@ template SiSUoutputDebugs() {
string key,
) {
if (contents[key].length > 1) {
- string indent_amount;
+ string indent_spaces;
foreach (obj; contents[key]) {
- indent_amount=indented_(obj.para_attrib.indent_start);
+ indent_spaces=markup.indent_by_spaces_provided(obj.para_attrib.indent_start);
writefln(
"%s%s",
- indent_amount,
+ indent_spaces,
obj.object
);
}