diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-12-13 20:15:49 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-12-13 20:19:34 -0800 |
commit | a924a3f43d25b34ddd46da2100732ee077779785 (patch) | |
tree | 39790f01a4d0baee719a640044b421375471c054 /src/Text/Pandoc/Writers | |
parent | 90b8024fac298fe26b47075fb1d87d81a7a30ab0 (diff) | |
download | pandoc-a924a3f43d25b34ddd46da2100732ee077779785.tar.gz |
Fixed ICML image syntax for local files.
`file:filename` rather than `file://./filename`.
I think this is right; it matches what we had before
with people actually using the ICML writer, and seems
to match examples in the spec. I don't
have a copy of InDesign I can test on, though.
@DigitalPublishingToolkit and @mb21, can you have
a look?
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/ICML.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/ICML.hs b/src/Text/Pandoc/Writers/ICML.hs index 7fe3de2f6..4b2e794d3 100644 --- a/src/Text/Pandoc/Writers/ICML.hs +++ b/src/Text/Pandoc/Writers/ICML.hs @@ -533,7 +533,7 @@ imageICML opts style attr _ (src, _) = do hw = showFl $ ow / 2 hh = showFl $ oh / 2 scale = showFl (imgWidth / ow) ++ " 0 0 " ++ showFl (imgHeight / oh) - src' = if isURI src then src else "file://." ++ pathSeparator : src + src' = if isURI src then src else "file:" ++ src (stlStr, attrs) = styleToStrAttr style props = inTags True "Properties" [] $ inTags True "PathGeometry" [] $ inTags True "GeometryPathType" [("PathOpen","false")] |