From f938378d001cb892ccccbf6808010dd69becc26f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 1 Aug 2021 22:45:41 -0600 Subject: RTF writer: omit `\bin` in `\pict`. According to the spec, this is not needed or wanted when the data is in hexadecimal format, as it is here. --- src/Text/Pandoc/Writers/RTF.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/RTF.hs b/src/Text/Pandoc/Writers/RTF.hs index 3527949b4..24a90a0a6 100644 --- a/src/Text/Pandoc/Writers/RTF.hs +++ b/src/Text/Pandoc/Writers/RTF.hs @@ -64,7 +64,7 @@ rtfEmbedImage opts x@(Image attr _ (src,_)) = catchError -- twip = 1/1440in = 1/20pt where (xpx, ypx) = sizeInPixels sz (xpt, ypt) = desiredSizeInPoints opts attr sz - let raw = "{\\pict" <> filetype <> sizeSpec <> "\\bin " <> + let raw = "{\\pict" <> filetype <> sizeSpec <> " " <> T.concat bytes <> "}" if B.null imgdata then do -- cgit v1.2.3