diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-08-01 22:45:41 -0600 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-08-01 22:45:41 -0600 |
commit | f938378d001cb892ccccbf6808010dd69becc26f (patch) | |
tree | 8489341ca270b83ddef095e75add4d151f732509 /src/Text/Pandoc | |
parent | c1ab55793b85c76b7b8099886df530f79fe2f407 (diff) | |
download | pandoc-f938378d001cb892ccccbf6808010dd69becc26f.tar.gz |
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.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Writers/RTF.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |