From 95f359689c5dfe3983ac6934c5c8299473f512e7 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 13 Oct 2025 15:25:37 -0400 Subject: abstraction metainfo, provide endnote parent ocn - preferable, endnote parent object number available for use (as here in text output, compare "endnotes, add caller ocn" commit) --- src/sisudoc/meta/metadoc_from_src_functions.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sisudoc/meta/metadoc_from_src_functions.d') diff --git a/src/sisudoc/meta/metadoc_from_src_functions.d b/src/sisudoc/meta/metadoc_from_src_functions.d index 53e494b..63143e9 100644 --- a/src/sisudoc/meta/metadoc_from_src_functions.d +++ b/src/sisudoc/meta/metadoc_from_src_functions.d @@ -4240,7 +4240,7 @@ template docAbstractionFunctions() { if (obj.has.inline_notes_reg) { if ((obj.text).matchFirst(rgx.inline_notes_al_gen)) { foreach (m; (obj.text).matchAll(rgx.inline_notes_al_regular_number_note)) { - _notes ~= "\n\n" ~ m["num"] ~ ". " ~ m["note"] ~ " ≫" ~ obj.metainfo.ocn.to!string; + _notes ~= "\n\n" ~ m["num"] ~ ". " ~ m["note"]; notes_[(m["num"])]["ocn"] = obj.metainfo.ocn.to!string; } } @@ -4254,7 +4254,7 @@ template docAbstractionFunctions() { foreach (ref obj; the_document_endnotes_section) { auto matches = (obj.text).matchAll(rgx.endnote_section_note); foreach (m; matches) { - obj.text = m.hit ~ " ≫" ~ notes_[(m["notenumber"])]["ocn"]; + obj.metainfo.parent_ocn = notes_[(m["notenumber"])]["ocn"].to!int; } } foreach (ref obj; the_document_endnotes_section) { -- cgit v1.2.3