aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc/io_out/text.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2025-10-13 15:25:37 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2025-10-13 15:25:41 -0400
commit95f359689c5dfe3983ac6934c5c8299473f512e7 (patch)
tree38c94bc13b95ae6841ec7a0efbce346f3c3d455b /src/sisudoc/io_out/text.d
parenthousekeeping, nix & env, minor (diff)
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)
Diffstat (limited to 'src/sisudoc/io_out/text.d')
-rw-r--r--src/sisudoc/io_out/text.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sisudoc/io_out/text.d b/src/sisudoc/io_out/text.d
index da0e2b6..ce37310 100644
--- a/src/sisudoc/io_out/text.d
+++ b/src/sisudoc/io_out/text.d
@@ -309,9 +309,9 @@ template outputText() {
_ocn = "「" ~ obj.metainfo.ocn.to!string ~ "」";
string _txt = obj.text;
_txt = _txt
- .replaceFirst(rgx.inline_link, ("$1"))
+ .replaceAll(rgx.inline_link, ("$1")) // consider
.replaceFirst(rgx.inline_superscript, ("$1"));
- _txt = special_characters_and_font_face!().general(_txt);
+ _txt = special_characters_and_font_face!().general(_txt) ~ " ≫" ~ obj.metainfo.parent_ocn.to!string;
return _txt ~ newlines;
}
string bookindex(O,M)(O obj, M doc_matters) {