aboutsummaryrefslogtreecommitdiffhomepage
path: root/org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-07-30 23:19:11 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-07-31 14:06:50 -0400
commit5193814934f6cd64ed5554fa262ec579fbef1ab0 (patch)
tree9e32157f1fc04020ee6e8eec248578fb24e15a7b /org
parentchange search result symbols for show index & text (diff)
digest (sha256) for document root heading (title)
corrects an omission this hould have been included to start with reference tests texts regenerated
Diffstat (limited to 'org')
-rw-r--r--org/ocda.org3
1 files changed, 3 insertions, 0 deletions
diff --git a/org/ocda.org b/org/ocda.org
index d5651cc..c806c1e 100644
--- a/org/ocda.org
+++ b/org/ocda.org
@@ -1352,6 +1352,9 @@ if (the_document_body_section.length > 1) {
}
foreach (ref obj; the_document_head_section) {
if (obj.metainfo.is_a == "heading") {
+ if (obj.metainfo.heading_lev_markup == 0) { // sha for document root heading, caught here, should have been done earlier
+ obj.metainfo.sha256 = obj.obj_digest;
+ }
foreach (pair; pairs) {
if (obj.metainfo.ocn == pair[0]) {
obj.metainfo.last_descendant_ocn = pair[1];