aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/meta/metadoc_from_src.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2018-12-01 19:26:04 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2019-05-17 16:59:38 -0400
commitd0ec46764b6aa5fecf55760dc177c53411fcc735 (patch)
tree3d1217253edaaeccf0b45222596f6139d88ca557 /src/doc_reform/meta/metadoc_from_src.d
parentjson type match, fix breakage caused by external change (diff)
0.3.3 org mode behavior
Diffstat (limited to 'src/doc_reform/meta/metadoc_from_src.d')
-rw-r--r--src/doc_reform/meta/metadoc_from_src.d8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/doc_reform/meta/metadoc_from_src.d b/src/doc_reform/meta/metadoc_from_src.d
index cdb1e6b..c3c6147 100644
--- a/src/doc_reform/meta/metadoc_from_src.d
+++ b/src/doc_reform/meta/metadoc_from_src.d
@@ -4017,8 +4017,10 @@ template DocReformDocAbstraction() {
table_object.has.inline_notes_star = false;
table_object.has.inline_links = false;
if (auto m = table_head.matchFirst(rgx.table_head_instructions)) {
- table_object.table.heading = ((m["c_heading"].length > 0) && (m["c_heading"] == "h")) ? true : false;
- table_object.table.number_of_columns = ((m["c_num"].length > 0) && (m["c_num"].to!int > 0)) ? m["c_num"].to!int : 0; // double check, may be obsolete
+ table_object.table.heading
+ = ((m["c_heading"].length > 0) && (m["c_heading"] == "h")) ? true : false;
+ table_object.table.number_of_columns
+ = ((m["c_num"].length > 0) && (m["c_num"].to!int > 0)) ? m["c_num"].to!int : 0;
foreach (cw; m["c_widths"].matchAll(rgx.table_col_widths)) {
auto x = cw.hit.matchFirst(rgx.table_col_widths_and_alignment);
table_object.table.column_widths ~= x["width"].to!int;
@@ -4108,7 +4110,7 @@ template DocReformDocAbstraction() {
}
if (table_object.table.number_of_columns == 0
&& table_object.table.column_widths.length > 0) {
- writeln(__LINE__, " ERROR");
+ writeln(__LINE__, " ERROR");
}
if (table_object.table.number_of_columns > 0
&& table_object.table.column_widths.length == 0) {