From 5193814934f6cd64ed5554fa262ec579fbef1ab0 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 30 Jul 2026 23:19:11 -0400 Subject: digest (sha256) for document root heading (title) corrects an omission this hould have been included to start with reference tests texts regenerated --- org/ocda.org | 3 +++ 1 file changed, 3 insertions(+) (limited to 'org') 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]; -- cgit v1.2.3