aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/xmls.d
diff options
context:
space:
mode:
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?