aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-12-20 09:19:30 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2020-02-11 13:07:30 -0500
commitcef88dc6ce96abb8fb0db3d8fd723fef3636695d (patch)
tree817659b608c7511d69eaf537f043bf86f7050ccd /src/doc_reform/io_out
parentlatex, footnotes only (endnotes section removed) (diff)
bugfix toc endnotes links in xmls, other minor
Diffstat (limited to 'src/doc_reform/io_out')
-rw-r--r--src/doc_reform/io_out/odt.d2
-rw-r--r--src/doc_reform/io_out/sqlite.d2
-rw-r--r--src/doc_reform/io_out/xmls.d12
3 files changed, 10 insertions, 6 deletions
diff --git a/src/doc_reform/io_out/odt.d b/src/doc_reform/io_out/odt.d
index 1a553d1..09bcf65 100644
--- a/src/doc_reform/io_out/odt.d
+++ b/src/doc_reform/io_out/odt.d
@@ -404,7 +404,7 @@ template formatODT() {
assert(obj.metainfo.is_of_part == "body" || "frontmatter" || "backmatter");
assert(obj.metainfo.is_of_section == "body" || "toc" || "endnotes" || "glossary" || "bibliography" || "bookindex" || "blurb");
assert(obj.metainfo.is_of_type == "para");
- assert(obj.metainfo.is_a == "para" || "toc" || "endnotes" || "glossary" || "bibliography" || "bookindex" || "blurb");
+ assert(obj.metainfo.is_a == "para" || "toc" || "endnote" || "glossary" || "bibliography" || "bookindex" || "blurb");
string _o_txt_odt;
if (obj.metainfo.dummy_heading
&& (obj.metainfo.is_a == "toc" || obj.metainfo.is_a == "heading")) {
diff --git a/src/doc_reform/io_out/sqlite.d b/src/doc_reform/io_out/sqlite.d
index c779e00..f9a17d4 100644
--- a/src/doc_reform/io_out/sqlite.d
+++ b/src/doc_reform/io_out/sqlite.d
@@ -481,7 +481,7 @@ template SQLiteFormatAndLoadObject() {
assert(obj.metainfo.is_of_part == "body" || "frontmatter" || "backmatter");
assert(obj.metainfo.is_of_section == "body" || "toc" || "endnotes" || "glossary" || "bibliography" || "bookindex" || "blurb");
assert(obj.metainfo.is_of_type == "para");
- assert(obj.metainfo.is_a == "para" || "toc" || "endnotes" || "glossary" || "bibliography" || "bookindex" || "blurb");
+ assert(obj.metainfo.is_a == "para" || "toc" || "endnote" || "glossary" || "bibliography" || "bookindex" || "blurb");
string _txt = munge_html(doc_matters, obj);
_txt = (obj.attrib.bullet) ? ("●&#160;&#160;" ~ _txt) : _txt;
_txt = inline_markup(doc_matters, obj, _txt);
diff --git a/src/doc_reform/io_out/xmls.d b/src/doc_reform/io_out/xmls.d
index 739c379..f48b6be 100644
--- a/src/doc_reform/io_out/xmls.d
+++ b/src/doc_reform/io_out/xmls.d
@@ -476,7 +476,7 @@ template outputXHTMLs() {
/+ need markup for text, and separated footnote +/
foreach(m; _txt.matchAll(rgx.inline_notes_al_special_char_note)) {
_endnotes ~= format(
- "%s%s%s%s\n %s%s%s%s%s\n %s\n%s",
+ "%s%s%s%s\n %s%s%s%s%s %s\n%s",
"<p class=\"endnote\">",
"<a href=\"#noteref_",
m.captures[1],
@@ -500,7 +500,7 @@ template outputXHTMLs() {
/+ need markup for text, and separated footnote +/
foreach(m; _txt.matchAll(rgx.inline_notes_al_regular_number_note)) {
_endnotes ~= format(
- "%s%s%s%s\n %s%s%s%s%s\n %s\n%s",
+ "%s%s%s%s\n %s%s%s%s%s %s\n%s",
"<p class=\"endnote\">",
"<a href=\"#noteref_",
m.captures[1],
@@ -777,7 +777,7 @@ template outputXHTMLs() {
assert(obj.metainfo.is_of_part == "body" || "frontmatter" || "backmatter");
assert(obj.metainfo.is_of_section == "body" || "toc" || "endnotes" || "glossary" || "bibliography" || "bookindex" || "blurb");
assert(obj.metainfo.is_of_type == "para");
- assert(obj.metainfo.is_a == "para" || "toc" || "endnotes" || "glossary" || "bibliography" || "bookindex" || "blurb");
+ assert(obj.metainfo.is_a == "para" || "toc" || "endnote" || "glossary" || "bibliography" || "bookindex" || "blurb");
string tags = _xhtml_anchor_tags(obj);
_txt = font_face(_txt);
string o;
@@ -792,7 +792,11 @@ template outputXHTMLs() {
</p>
</div>┃",
obj.metainfo.identifier,
- (doc_matters.opt.action.ocn_off) ? "" : ((obj.metainfo.object_number.empty) ? "" : obj.metainfo.identifier),
+ (doc_matters.opt.action.ocn_off)
+ ? ""
+ : ((obj.metainfo.object_number.empty)
+ ? ""
+ : obj.metainfo.identifier),
obj.metainfo.is_a,
obj.attrib.indent_hang,
obj.attrib.indent_base,