aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/meta
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-02-09 14:18:45 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2022-02-09 14:31:07 -0500
commite9ff8330d44330ed87bb2cce562f132a9a005f3d (patch)
treefbf2ea5031afeb04a8655348fbd8c3eeb4201eab /src/doc_reform/meta
parentquote block, footnotes, markup? (diff)
xmls, copyright and license display
Diffstat (limited to 'src/doc_reform/meta')
-rw-r--r--src/doc_reform/meta/conf_make_meta_yaml.d12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/doc_reform/meta/conf_make_meta_yaml.d b/src/doc_reform/meta/conf_make_meta_yaml.d
index af6096a..ff0bcf5 100644
--- a/src/doc_reform/meta/conf_make_meta_yaml.d
+++ b/src/doc_reform/meta/conf_make_meta_yaml.d
@@ -80,6 +80,14 @@ template contentYAMLtoSpineStruct() {
) {
mixin spineRgxIn;
static auto rgx = RgxI();
+ string check_input_markup()(
+ string _txt,
+ ) {
+ _txt = _txt
+ .replaceAll(regex(r"\\"), mkup.br_newline_inline)
+ .strip;
+ return _txt;
+ }
confCompositeMakeBuild _mk;
if (_identifier != "header") { // called only once per run anyway
/+ conf ------------------------------------------------------------------- +/
@@ -1127,7 +1135,7 @@ template contentYAMLtoSpineStruct() {
&& _yaml["rights"]["copyright"].type.string
&& _yaml["rights"]["copyright"].tag.match(rgx.yaml_tag_is_str)
) {
- _struct_composite.meta.rights_copyright = _yaml["rights"]["copyright"].get!string;
+ _struct_composite.meta.rights_copyright = check_input_markup(_yaml["rights"]["copyright"].get!string);
}
if ("copyright_text" in _yaml["rights"]
&& _yaml["rights"]["copyright_text"].type.string
@@ -1175,7 +1183,7 @@ template contentYAMLtoSpineStruct() {
&& _yaml["rights"]["license"].type.string
&& _yaml["rights"]["license"].tag.match(rgx.yaml_tag_is_str)
) {
- _struct_composite.meta.rights_license = _yaml["rights"]["license"].get!string;
+ _struct_composite.meta.rights_license = check_input_markup(_yaml["rights"]["license"].get!string);
}
}
}