aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/output_sqlite.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/output_sqlite.org')
-rw-r--r--org/output_sqlite.org16
1 files changed, 8 insertions, 8 deletions
diff --git a/org/output_sqlite.org b/org/output_sqlite.org
index 4f5029e..0c5b222 100644
--- a/org/output_sqlite.org
+++ b/org/output_sqlite.org
@@ -1298,7 +1298,7 @@ string doc_text;
foreach (part; doc_parts) {
foreach (obj; doc_abstraction[part]) {
switch (obj.of_part) {
- case "frontmatter": assert(part == "head");
+ case "frontmatter": assert(part == "head", part);
switch (obj.is_of) {
case "para":
switch (obj.is_a) {
@@ -1319,7 +1319,7 @@ foreach (part; doc_parts) {
break;
}
break;
- case "body": // assert(part == "body"); // TODO broken
+ case "body": // assert(part == "body", part); // TODO broken
switch (obj.is_of) {
case "para":
switch (obj.is_a) {
@@ -1378,26 +1378,26 @@ foreach (part; doc_parts) {
}
break;
case "backmatter":
- assert(part == "endnotes" || "glossary" || "bibliography" || "bookindex_scroll" || "blurb" || "tail");
+ assert(part == "endnotes" || "glossary" || "bibliography" || "bookindex_seg" || "blurb" || "tail", part);
switch (obj.is_of) {
case "para":
switch (obj.is_a) {
case "heading":
obj_txt = format_and_sqlite_load.heading(obj);
break;
- case "endnote": assert(part == "endnotes");
+ case "endnote": assert(part == "endnotes", part);
obj_txt = format_and_sqlite_load.para(obj);
break;
- case "glossary": assert(part == "glossary");
+ case "glossary": assert(part == "glossary", part);
obj_txt = format_and_sqlite_load.para(obj);
break;
- case "bibliography": assert(part == "bibliography");
+ case "bibliography": assert(part == "bibliography", part);
obj_txt = format_and_sqlite_load.para(obj);
break;
- case "bookindex": assert(part == "bookindex_scroll");
+ case "bookindex": assert(part == "bookindex_seg", part);
obj_txt = format_and_sqlite_load.para(obj);
break;
- case "blurb": assert(part == "blurb");
+ case "blurb": assert(part == "blurb", part);
obj_txt = format_and_sqlite_load.para(obj);
break;
default: