diff options
author | Ralph Amissah <ralph@amissah.com> | 2018-05-29 18:11:26 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:15 -0400 |
commit | 4bc9e4921afac5ddf9e84c2f1873639179be86ef (patch) | |
tree | c68bf4535c6e6b8264c85c3b7a7b6f2fffb0d320 /src/sdp/output/xmls.d | |
parent | image paths (diff) |
0.26.2 image(s) without dimensions
Diffstat (limited to 'src/sdp/output/xmls.d')
-rw-r--r-- | src/sdp/output/xmls.d | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/sdp/output/xmls.d b/src/sdp/output/xmls.d index 1621732..785d87e 100644 --- a/src/sdp/output/xmls.d +++ b/src/sdp/output/xmls.d @@ -100,8 +100,8 @@ template outputXHTMLs() { } return tags; } - auto header_metadata(Dm)( - Dm doc_matters, + auto header_metadata(M)( + M doc_matters, ) { string _title="Title"; string _author="Author"; @@ -149,8 +149,8 @@ template outputXHTMLs() { ); return o; } - auto site_info_button(Dm)( - Dm doc_matters, + auto site_info_button(M)( + M doc_matters, ) { string _locations; if (doc_matters.conf_make_meta.make.home_button_text.length > 0) { @@ -173,8 +173,8 @@ template outputXHTMLs() { ); return o; } - auto inline_search_form(Dm)( - Dm doc_matters, + auto inline_search_form(M)( + M doc_matters, ) { string _action="http://www.sisudoc.org/cgi-bin/search.cgi"; string _db="SiSU.7a.manual"; @@ -197,8 +197,8 @@ template outputXHTMLs() { ); return o; } - auto html_head(Dm)( - Dm doc_matters, + auto html_head(M)( + M doc_matters, string type, ) { string o; @@ -244,8 +244,8 @@ template outputXHTMLs() { ); return o; } - auto epub3_seg_head(Dm)( - Dm doc_matters, + auto epub3_seg_head(M)( + M doc_matters, ) { string html_base = format(q"¶<!DOCTYPE html> <html>¶", @@ -326,8 +326,7 @@ template outputXHTMLs() { _img_pth = "../../../image/"; } if (_txt.match(rgx.inline_image)) { - _txt = (_txt) - .replaceAll( // TODO bug where image dimensions (w or h) not given & consequently set to 0; should not be used (calculate earlier, abstraction) + _txt = _txt.replaceAll( // TODO bug where image dimensions (w or h) not given & consequently set to 0; should not be used (calculate earlier, abstraction) rgx.inline_image, ("$1<img src=\"" ~ _img_pth |