diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-11 08:20:27 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-12 12:14:39 -0400 |
| commit | a341bb94c66807ab666d16810ee5f50a56844a59 (patch) | |
| tree | 7606b51857d42c80ea2b13b0d7c32f700851ab37 /src | |
| parent | ocda: get image from is internal image markup (diff) | |
ocda: .ssp should have all sections of abstraction
The abstraction has nine sections and includes "tail". Both artefact
writers hardcoded a list of eight, so "tail" was silently dropped.
(assisted by Claude-Code)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sisudoc/ocda/abstraction/ssp.d | 6 | ||||
| -rw-r--r-- | src/sisudoc/outputs/io_out/create_ocda_db.d | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/sisudoc/ocda/abstraction/ssp.d b/src/sisudoc/ocda/abstraction/ssp.d index 05931b1..d29737b 100644 --- a/src/sisudoc/ocda/abstraction/ssp.d +++ b/src/sisudoc/ocda/abstraction/ssp.d @@ -553,9 +553,11 @@ template spineAbstractionTxt() { output ~= " quotes: " ~ doc_matters.has.quotes.to!string; output ~= "}"; output ~= ""; - /+ ↓ document sections +/ + /+ ↓ document sections - every section the abstraction holds, in document order. + "tail" is the end-of-document used by some output writers + +/ string[] section_order = ["head", "toc", "body", "endnotes", - "glossary", "bibliography", "bookindex", "blurb"]; + "glossary", "bibliography", "bookindex", "blurb", "tail"]; foreach (section; section_order) { if (section !in doc_abstraction) { continue; } auto section_objs = doc_abstraction[section]; diff --git a/src/sisudoc/outputs/io_out/create_ocda_db.d b/src/sisudoc/outputs/io_out/create_ocda_db.d index a47db7a..8f915fa 100644 --- a/src/sisudoc/outputs/io_out/create_ocda_db.d +++ b/src/sisudoc/outputs/io_out/create_ocda_db.d @@ -388,7 +388,7 @@ template spineAbstractionDb() { ); string[] section_order = ["head", "toc", "body", "endnotes", - "glossary", "bibliography", "bookindex", "blurb"]; + "glossary", "bibliography", "bookindex", "blurb", "tail"]; foreach (section; section_order) { if (section !in doc_abstraction) continue; |
