From 4bc9e4921afac5ddf9e84c2f1873639179be86ef Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 29 May 2018 18:11:26 -0400 Subject: 0.26.2 image(s) without dimensions --- src/sdp/output/xmls.d | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'src/sdp/output/xmls.d') 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"¶ ¶", @@ -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