diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2022-02-09 14:18:45 -0500 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2022-02-09 14:31:07 -0500 |
commit | e9ff8330d44330ed87bb2cce562f132a9a005f3d (patch) | |
tree | fbf2ea5031afeb04a8655348fbd8c3eeb4201eab /org/meta_conf_make_meta.org | |
parent | quote block, footnotes, markup? (diff) |
xmls, copyright and license display
Diffstat (limited to 'org/meta_conf_make_meta.org')
-rw-r--r-- | org/meta_conf_make_meta.org | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/org/meta_conf_make_meta.org b/org/meta_conf_make_meta.org index f91a615..331fe49 100644 --- a/org/meta_conf_make_meta.org +++ b/org/meta_conf_make_meta.org @@ -16,6 +16,18 @@ #+PROPERTY: header-args+ :padline no #+PROPERTY: header-args+ :mkdirp yes +#+NAME: meta_check_input_markup +#+BEGIN_SRC d +string check_input_markup()( + string _txt, +) { + _txt = _txt + .replaceAll(regex(r"\\"), mkup.br_newline_inline) + .strip; + return _txt; +} +#+END_SRC + [[./spine.org][spine]] [[./][org/]] * generic ** conf yaml REFERENCE @@ -573,6 +585,7 @@ template contentYAMLtoSpineStruct() { ) { mixin spineRgxIn; static auto rgx = RgxI(); + <<meta_check_input_markup>> confCompositeMakeBuild _mk; if (_identifier != "header") { // called only once per run anyway <<yaml_objects_conf>> @@ -1647,7 +1660,7 @@ if ("rights" in _yaml && _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 @@ -1695,7 +1708,7 @@ if ("rights" in _yaml && _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); } } } |