aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/output')
-rw-r--r--src/sdp/output/sqlite.d16
-rw-r--r--src/sdp/output/sqlite_discrete.d16
2 files changed, 16 insertions, 16 deletions
diff --git a/src/sdp/output/sqlite.d b/src/sdp/output/sqlite.d
index 69c7d51..6a9acd2 100644
--- a/src/sdp/output/sqlite.d
+++ b/src/sdp/output/sqlite.d
@@ -903,7 +903,7 @@ template SQLiteBuildTablesAndPopulate() {
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) {
@@ -924,7 +924,7 @@ template SQLiteBuildTablesAndPopulate() {
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) {
@@ -983,26 +983,26 @@ template SQLiteBuildTablesAndPopulate() {
}
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:
diff --git a/src/sdp/output/sqlite_discrete.d b/src/sdp/output/sqlite_discrete.d
index c8238f4..132d312 100644
--- a/src/sdp/output/sqlite_discrete.d
+++ b/src/sdp/output/sqlite_discrete.d
@@ -900,7 +900,7 @@ template SQLiteDiscreteBuildTablesAndPopulate() {
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) {
@@ -921,7 +921,7 @@ template SQLiteDiscreteBuildTablesAndPopulate() {
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) {
@@ -980,26 +980,26 @@ template SQLiteDiscreteBuildTablesAndPopulate() {
}
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: