From bb03ff22fa3af8b731a591fd450b85c5c0c57f02 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 3 Dec 2021 22:11:59 -0500 Subject: metaverse, xml dom close eof --- org/out_xmls.org | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'org/out_xmls.org') 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() { <> <> <> - <> +<> +<> <> <> <> @@ -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"┃┃"); + 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 -- cgit v1.2.3