From e9ff8330d44330ed87bb2cce562f132a9a005f3d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 9 Feb 2022 14:18:45 -0500 Subject: xmls, copyright and license display --- src/doc_reform/meta/conf_make_meta_yaml.d | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/doc_reform/meta') 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); } } } -- cgit v1.2.3