From a47b0ef98ca7c5c47b81227b06f993609c41c3ff Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 24 Jun 2023 15:22:30 -0400 Subject: ocda, process section rather than part --- src/doc_reform/io_out/xmls.d | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/doc_reform/io_out/xmls.d') 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
\n" ; break; @@ -85,13 +85,13 @@ template outputXHTMLs() { delimit_ ~= "\n
\n" ; break; default: - delimit_ ~= "\n
\n" ; + delimit_ ~= "\n
\n" ; break; } - if (previous_part.length > 0) { + if (previous_section.length > 0) { delimit ~= "\n
"; } - previous_part = part; + previous_section = section; delimit ~= delimit_; } // you also need to close the last div, introduce a footer? -- cgit v1.2.3