aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/out_xmls.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/out_xmls.org')
-rw-r--r--org/out_xmls.org32
1 files changed, 30 insertions, 2 deletions
diff --git a/org/out_xmls.org b/org/out_xmls.org
index 4ccd2a0..86ee194 100644
--- a/org/out_xmls.org
+++ b/org/out_xmls.org
@@ -42,7 +42,8 @@ template outputXHTMLs() {
<<xhtml_format_objects_inline_search_form>>
<<xhtml_format_objects_html_head>>
<<xhtml_format_objects_epub3_seg_head>>
- <<xhtml_format_objects_tail>>
+<<xhtml_format_objects_dom_close>>
+<<xhtml_format_objects_tail>>
<<xhtml_format_objects_inline_images>>
<<xhtml_format_objects_inline_links>>
<<xhtml_format_objects_inline_notes_scroll>>
@@ -464,6 +465,17 @@ import
}
#+END_SRC
+***** xhtml dom tail
+
+#+NAME: xhtml_format_objects_dom_close
+#+BEGIN_SRC d
+@safe string dom_close() {
+ string o;
+ o = format(q"┃</div>┃");
+ return o;
+}
+#+END_SRC
+
***** xhtml tail
#+NAME: xhtml_format_objects_tail
@@ -1759,6 +1771,9 @@ case "backmatter":
case "blurb": assert(part == "blurb");
doc_html ~= xhtml_format.para_scroll(_txt, obj, doc_matters, suffix);
break;
+ case "tail": assert(part == "tail");
+ doc_html ~= xhtml_format.para_scroll(_txt, obj, doc_matters, suffix);
+ break;
default:
{ /+ debug +/
if (doc_matters.opt.action.debug_do
@@ -1800,7 +1815,10 @@ default:
}
}
}
- doc = xhtml_format.html_head(doc_matters, "scroll") ~ doc_html ~ xhtml_format.tail;
+ doc = xhtml_format.html_head(doc_matters, "scroll")
+ ~ doc_html
+ ~ xhtml_format.dom_close
+ ~ xhtml_format.tail;
scroll_write_output(doc, doc_matters);
}
#+END_SRC
@@ -2092,6 +2110,11 @@ case "backmatter":
doc_html[segment_filename] ~= t[0];
doc_html_endnotes[segment_filename] ~= t[1];
break;
+ case "tail": assert(part == "tail");
+ t = xhtml_format.para_seg(_txt, obj, doc_matters, suffix, "seg");
+ doc_html[segment_filename] ~= t[0];
+ doc_html_endnotes[segment_filename] ~= t[1];
+ break;
default:
{ /+ debug +/
if (doc_matters.opt.action.debug_do
@@ -2911,6 +2934,11 @@ case "backmatter":
epubWrite.doc_epub3[segment_filename] ~= t[0];
epubWrite.doc_epub3_endnotes[segment_filename] ~= t[1];
break;
+ case "tail": assert(part == "tail");
+ t = xhtml_format.para_seg(_txt, obj, doc_matters, suffix, "epub");
+ epubWrite.doc_epub3[segment_filename] ~= t[0];
+ epubWrite.doc_epub3_endnotes[segment_filename] ~= t[1];
+ break;
default:
{ /+ debug +/
if (doc_matters.opt.action.debug_do