aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao_abstract_doc_source.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2016-09-06 20:47:02 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:13 -0400
commit8ddeddffb0f5323932f6f44c6005496075a9ad73 (patch)
treef59f9c2d291b977a7c4e92044adf2fae7a50e20f /src/sdp/ao_abstract_doc_source.d
parentminor shuffling (diff)
naming of para indent attributes
Diffstat (limited to 'src/sdp/ao_abstract_doc_source.d')
-rw-r--r--src/sdp/ao_abstract_doc_source.d38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/sdp/ao_abstract_doc_source.d b/src/sdp/ao_abstract_doc_source.d
index 3b9dbe6..3971db1 100644
--- a/src/sdp/ao_abstract_doc_source.d
+++ b/src/sdp/ao_abstract_doc_source.d
@@ -460,8 +460,8 @@ template SiSUdocAbstraction() {
// bullet
// );
header_set_common(line_occur, an_object, type);
- indent["first"] = "0";
- indent["second"] = "0";
+ indent["hang_position"] = "0";
+ indent["base_position"] = "0";
bullet = false;
processing.remove("verse");
++counter;
@@ -1896,8 +1896,8 @@ template SiSUdocAbstraction() {
}
type["para"] = State.on;
an_object["obj"] ~= line ~= "\n";
- indent["first"] = to!string(m.captures[1]);
- indent["second"] = "0";
+ indent["hang_position"] = to!string(m.captures[1]);
+ indent["base_position"] = "0";
bullet = false;
} else if (matchFirst(line, rgx.para_bullet)) {
debug(parabullet) { // para bullet
@@ -1905,8 +1905,8 @@ template SiSUdocAbstraction() {
}
type["para"] = State.on;
an_object["obj"] ~= line;
- indent["first"] = "0";
- indent["second"] = "0";
+ indent["hang_position"] = "0";
+ indent["base_position"] = "0";
bullet = true;
} else if (auto m = matchFirst(line, rgx.para_indent_hang)) {
debug(paraindenthang) { // para indent hang
@@ -1914,8 +1914,8 @@ template SiSUdocAbstraction() {
}
type["para"] = State.on;
an_object["obj"] ~= line;
- indent["first"] = to!string(m.captures[1]);
- indent["second"] = to!string(m.captures[2]);
+ indent["hang_position"] = to!string(m.captures[1]);
+ indent["base_position"] = to!string(m.captures[2]);
bullet = false;
} else if (auto m = matchFirst(line, rgx.para_bullet_indent)) {
debug(parabulletindent) { // para bullet indent
@@ -1923,15 +1923,15 @@ template SiSUdocAbstraction() {
}
type["para"] = State.on;
an_object["obj"] ~= line;
- indent["first"] = to!string(m.captures[1]);
- indent["second"] = "0";
+ indent["hang_position"] = to!string(m.captures[1]);
+ indent["base_position"] = "0";
bullet = true;
} else {
// !line.empty
type["para"] = State.on;
an_object["obj"] ~= line;
- indent["first"] = "0";
- indent["second"] = "0";
+ indent["hang_position"] = "0";
+ indent["base_position"] = "0";
bullet = false;
}
++line_occur["para"];
@@ -1966,23 +1966,23 @@ template SiSUdocAbstraction() {
obj_txt["munge"]=obj_txt_in;
if (matchFirst(obj_txt_in, rgx.para_bullet)) {
obj_txt["attrib"] =" \"bullet\": \"true\","
- ~ " \"indent_first\": 0,"
+ ~ " \"indent_start\": 0,"
~ " \"indent_rest\": 0,";
} else if (auto m = matchFirst(obj_txt_in, rgx.para_bullet_indent)) {
obj_txt["attrib"] =" \"bullet\": \"true\","
- ~ " \"indent_first\": " ~ to!string(m.captures[1]) ~ ","
+ ~ " \"indent_start\": " ~ to!string(m.captures[1]) ~ ","
~ " \"indent_rest\": " ~ to!string(m.captures[1]) ~ ",";
} else if (auto m = matchFirst(obj_txt_in, rgx.para_indent_hang)) {
obj_txt["attrib"] =" \"bullet\": \"false\","
- ~ " \"indent_first\": " ~ to!string(m.captures[1]) ~ ","
+ ~ " \"indent_start\": " ~ to!string(m.captures[1]) ~ ","
~ " \"indent_rest\": " ~ to!string(m.captures[2]) ~ ",";
} else if (auto m = matchFirst(obj_txt_in, rgx.para_indent)) {
obj_txt["attrib"] =" \"bullet\": \"false\","
- ~ " \"indent_first\": " ~ to!string(m.captures[1]) ~ ","
+ ~ " \"indent_start\": " ~ to!string(m.captures[1]) ~ ","
~ " \"indent_rest\": " ~ to!string(m.captures[1]) ~ ",";
} else {
obj_txt["attrib"] =" \"bullet\": \"false\","
- ~ " \"indent_first\": 0,"
+ ~ " \"indent_start\": 0,"
~ " \"indent_rest\": 0,";
}
return obj_txt["attrib"];
@@ -2629,8 +2629,8 @@ template SiSUdocAbstraction() {
bi_tmp = replaceFirst(bi_tmp, rgx.trailing_linebreak, "");
type="para";
attrib="";
- indent["first"] = "0";
- indent["second"] = "1";
+ indent["hang_position"] = "0";
+ indent["base_position"] = "1";
attrib="";
// bookindex_section ~=
// set_abstract_object.contents_para(