aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao/abstract_doc_source.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-06-06 17:45:07 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commite208f6c6f40b84edf3556f03ec41500bebbe21a2 (patch)
tree73d012c1e808ec70c70f34c560de8cd115c7e237 /src/sdp/ao/abstract_doc_source.d
parentrename program root sdp.d (diff)
heading auto-numbering, fixes
Diffstat (limited to 'src/sdp/ao/abstract_doc_source.d')
-rw-r--r--src/sdp/ao/abstract_doc_source.d8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sdp/ao/abstract_doc_source.d b/src/sdp/ao/abstract_doc_source.d
index 9fee954..dfd0dd9 100644
--- a/src/sdp/ao/abstract_doc_source.d
+++ b/src/sdp/ao/abstract_doc_source.d
@@ -4082,12 +4082,12 @@ template SiSUdocAbstraction() {
break;
}
}
- /+ num_depth minimum 0 (1.) default 2 (1.1.1) max 3 (1.1.1.1) implement +/
+ /+ num_depth minimum 0
+ (1.) default 2 (1.1.1) max 3 (1.1.1.1) implement +/
if (
heading_num_top_level
> obj_["lev_markup_number"].to!uint
) {
- heading_num_0 = 0;
heading_num_1 = 0;
heading_num_2 = 0;
heading_num_3 = 0;
@@ -4156,8 +4156,8 @@ template SiSUdocAbstraction() {
debug(heading_number_auto) {
writeln(heading_number_auto_composite);
}
- if (!(munge_.match(rgx.heading_anchor_tag))
- && !empty(heading_number_auto_composite)) {
+ if ((!empty(heading_number_auto_composite))
+ && (obj_["lev_markup_number"].to!uint >= heading_num_top_level)) {
munge_=(munge_)
.replaceFirst(rgx.heading,
"$1~$2 " ~ heading_number_auto_composite ~ ". ")