From 39d2dfabac93c700d6888e51ad582076658b23cc Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 29 May 2024 12:47:35 -0400 Subject: latex footers from document header make, a fix --- src/sisudoc/meta/conf_make_meta_structs.d | 7 +------ src/sisudoc/meta/conf_make_meta_yaml.d | 12 +++++++++++- 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'src/sisudoc/meta') diff --git a/src/sisudoc/meta/conf_make_meta_structs.d b/src/sisudoc/meta/conf_make_meta_structs.d index 9b1d1d1..3ece2dc 100644 --- a/src/sisudoc/meta/conf_make_meta_structs.d +++ b/src/sisudoc/meta/conf_make_meta_structs.d @@ -139,12 +139,7 @@ struct ConfCompositeMakeStr { return _out; } string[] footer(string[] _mk) { - string line_; - string[] _mk2; - foreach (line; _mk) { - _mk2 ~= url_markup(line); - } - return _mk2; + return _mk; } string[] headings(string[] _mk) { return _mk; diff --git a/src/sisudoc/meta/conf_make_meta_yaml.d b/src/sisudoc/meta/conf_make_meta_yaml.d index ac97a21..5712bcf 100644 --- a/src/sisudoc/meta/conf_make_meta_yaml.d +++ b/src/sisudoc/meta/conf_make_meta_yaml.d @@ -698,7 +698,17 @@ template contentYAMLtoSpineStruct() { char[][] __match_footer_array = (cast(char[]) _yaml["make"]["footer"].get!string) .split(rgx.make_heading_delimiter); - _struct_composite.make_str.footer = __match_footer_array.to!(string[]); + foreach(string hbt; __match_footer_array.to!(string[])) { + _struct_composite.make_str.footer ~= url_markup(hbt); + } + } else if ("footer" in _yaml["make"] + && _yaml["make"]["footer"].type.string + && _yaml["make"]["footer"].tag.match(rgx_y.yaml_tag_is_seq) + ) { + _struct_composite.make_str.footer = []; + foreach(string hbt; _yaml["make"]["footer"]) { + _struct_composite.make_str.footer ~= url_markup(hbt); + } } if ("headings" in _yaml["make"] && _yaml["make"]["headings"].type.string -- cgit v1.2.3