aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/RTF.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-08-01 22:45:41 -0600
committerJohn MacFarlane <jgm@berkeley.edu>2021-08-01 22:45:41 -0600
commitf938378d001cb892ccccbf6808010dd69becc26f (patch)
tree8489341ca270b83ddef095e75add4d151f732509 /src/Text/Pandoc/Writers/RTF.hs
parentc1ab55793b85c76b7b8099886df530f79fe2f407 (diff)
downloadpandoc-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/Writers/RTF.hs')
-rw-r--r--src/Text/Pandoc/Writers/RTF.hs2
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