aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao_defaults.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2016-11-11 22:02:14 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:13 -0400
commit784d5dacd2c11c9307c228bb76e43283287fc607 (patch)
tree56e9b3ca27c00bd45c41604f8f4bb6704bd477bf /src/sdp/ao_defaults.d
parentpara attribute: indent, variable type change, check consequences (diff)
para attribute: indent, make part of inline markup
Diffstat (limited to 'src/sdp/ao_defaults.d')
-rw-r--r--src/sdp/ao_defaults.d38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/sdp/ao_defaults.d b/src/sdp/ao_defaults.d
index 3255c99..d8c1e24 100644
--- a/src/sdp/ao_defaults.d
+++ b/src/sdp/ao_defaults.d
@@ -386,5 +386,43 @@ template InternalMarkup() {
struct InlineMarkup {
auto en_a_o = "【"; auto en_a_c = "】";
auto en_b_o = "〖"; auto en_b_c = "〗";
+ string _indent_spaces ="";
+ string indent_by_spaces_provided(int indent) {
+ switch (indent) {
+ case 0:
+ _indent_spaces = "";
+ break;
+ case 1:
+ _indent_spaces = " ";
+ break;
+ case 2:
+ _indent_spaces = " ";
+ break;
+ case 3:
+ _indent_spaces = " ";
+ break;
+ case 4:
+ _indent_spaces = " ";
+ break;
+ case 5:
+ _indent_spaces = " ";
+ break;
+ case 6:
+ _indent_spaces = " ";
+ break;
+ case 7:
+ _indent_spaces = " ";
+ break;
+ case 8:
+ _indent_spaces = " ";
+ break;
+ case 9:
+ _indent_spaces = " ";
+ break;
+ default:
+ break;
+ }
+ return _indent_spaces;
+ }
}
}