aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/xmls.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2023-06-24 15:22:30 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2023-06-27 17:11:57 -0400
commita47b0ef98ca7c5c47b81227b06f993609c41c3ff (patch)
tree5c40154fa4fa10820bd8e0bbb1dad3fc33b829e7 /src/doc_reform/io_out/xmls.d
parentldc 1.33.0-beta2 nix overlay (diff)
ocda, process section rather than part
Diffstat (limited to 'src/doc_reform/io_out/xmls.d')
-rw-r--r--src/doc_reform/io_out/xmls.d14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/doc_reform/io_out/xmls.d b/src/doc_reform/io_out/xmls.d
index 2b1f55b..048b614 100644
--- a/src/doc_reform/io_out/xmls.d
+++ b/src/doc_reform/io_out/xmls.d
@@ -68,13 +68,13 @@ template outputXHTMLs() {
static auto rgx = RgxO();
static auto rgx_xhtml = RgxXHTML();
@safe string div_delimit(
- string part,
- return ref string previous_part
+ string section,
+ return ref string previous_section
) {
string delimit = "";
string delimit_ = "";
- if (part != previous_part) {
- switch (part) {
+ if (section != previous_section) {
+ switch (section) {
case "head":
delimit_ ~= "\n<div class=\"doc_title\">\n" ;
break;
@@ -85,13 +85,13 @@ template outputXHTMLs() {
delimit_ ~= "\n<div class=\"doc_bookindex\">\n" ;
break;
default:
- delimit_ ~= "\n<div class=\"doc_" ~ part ~ "\">\n" ;
+ delimit_ ~= "\n<div class=\"doc_" ~ section ~ "\">\n" ;
break;
}
- if (previous_part.length > 0) {
+ if (previous_section.length > 0) {
delimit ~= "\n</div>";
}
- previous_part = part;
+ previous_section = section;
delimit ~= delimit_;
}
// you also need to close the last div, introduce a footer?