diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2011-08-09 17:40:49 +1200 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2011-08-09 17:40:49 +1200 |
commit | 3ec89c1ea9a02e30bf873358b9a7b44a481b3c30 (patch) | |
tree | 5effaee455eae2bf2410b48fdfdd2a1989b8a25c /xhtml11-quirks.conf | |
parent | 43fc24e2a061ac88ddc8c33b609323fba34daafd (diff) | |
download | asciidoc-3ec89c1ea9a02e30bf873358b9a7b44a481b3c30.tar.gz |
Fixed: Some path attributes were processed as escaped Python strings which
could result in corrupted path names with backslash separated Windows path
names. Reported by Will. See:
http://groups.google.com/group/asciidoc/browse_thread/thread/e8f3938bcb4c8bb4/44d13113a35738ef
Diffstat (limited to 'xhtml11-quirks.conf')
-rw-r--r-- | xhtml11-quirks.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xhtml11-quirks.conf b/xhtml11-quirks.conf index bbdd3f0..c20376e 100644 --- a/xhtml11-quirks.conf +++ b/xhtml11-quirks.conf @@ -9,8 +9,8 @@ <div class="content"> <a class="image" href="{link}"> {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} /> -{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext('{target}')[1][1:]};base64, -{data-uri#}{sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join("{indir={outdir}}","{imagesdir=}","{target}")}"}" /> +{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext(r'{target}')[1][1:]};base64, +{data-uri#}{sys:python -uc "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}" /> {link#}</a> </div> <div class="image-title">{caption={figure-caption} {counter:figure-number}: }{title}</div> |