Docx writer: Use rIdNN identifiers for r:embed in images.

This commit is contained in:
John MacFarlane 2013-01-06 19:07:35 -08:00
parent 73f464b8cd
commit 4d1c82de9e

View file

@ -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 }