aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-06 19:07:35 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-06 19:07:35 -0800
commit4d1c82de9e0ce213e6c32cd798549c4ddaf9d197 (patch)
tree9693f02481ff97b4e14b3515a66d25b16c89ba73 /src
parent73f464b8cdfe48d599068d5cacfa10997f9da93a (diff)
downloadpandoc-4d1c82de9e0ce213e6c32cd798549c4ddaf9d197.tar.gz
Docx writer: Use rIdNN identifiers for r:embed in images.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/Docx.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs
index 9d160598f..069a5f6eb 100644
--- a/src/Text/Pandoc/Writers/Docx.hs
+++ b/src/Text/Pandoc/Writers/Docx.hs
@@ -629,7 +629,7 @@ inlineToOpenXML opts (Image alt (src, tit)) = do
Just (i,img) -> return (i, imageSize img)
Nothing -> do
img <- liftIO $ B.readFile src
- ident' <- getUniqueId
+ ident' <- ("rId"++) `fmap` getUniqueId
let size' = imageSize img
modify $ \st -> st{
stImages = M.insert src (ident',img) $ stImages st }