demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

RTF documents have unncessary spaces after italics, bold, etc #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

  1. create a markdown file with italics finishing a sentence, eg "
theyyyy're *great*!"

  2. convert to rtf

What is the expected output? What do you see instead?

  The expected output would be: {\i great}!

  Instead, you see: {\i great} !

  Note the space before the exclamation mark.

What version of the product are you using? On what operating system?

  Pandoc 0.46 on Windows XP sp2, 32-bit.

Please provide any additional information below.

  The error seems to be in Writers/RTF.hs, around line 263, eg

  inlineToRTF (Emph lst) = "{\\i " ++ (inlineListToRTF lst) ++ "} "

  where an extra space is inserted after every italic span.

Original issue reported on code.google.com by mindfire...@gmail.com on 26 Mar 2008 at 9:15

GoogleCodeExporter commented 8 years ago
Fixed in r1274.  (Thanks - exemplary bug report!)

Original comment by fiddloso...@gmail.com on 26 Mar 2008 at 9:47