Fwd: LineEnding issues, .md > .docx

Joop Kiefte ikojba at gmail.com
Tue Aug 14 06:28:07 PDT 2012


FYI, just interested if there is a known issue here and/or compliance
errors you can help pandoc with...


---------- Forwarded message ----------
From: Oliver Schrenk <oliver.schrenk at gmail.com>
Date: 2012/8/14
Subject: Re: LineEnding issues, .md > .docx
To: "pandoc-discuss at googlegroups.com" <pandoc-discuss at googlegroups.com>
Cc: "pandoc-discuss at googlegroups.com" <pandoc-discuss at googlegroups.com>


I currently have only access to OpenOffice 3.0.

What would be a good approach to debug this? My plan is to create
native docx with something like code blocks and see how this is
formatted and how it fairs in OO, but I suspect that this is what you
did in the first place.

Am 13.08.2012 um 18:51 schrieb John MacFarlane <fiddlosopher at gmail.com>:

> I wasn't aware of this issue. I just confirmed it with LibreOffice on
> Mac OS X.  So it seems that the docx pandoc produces is fine for Word,
> but somehow confuses the Libre/OpenOffice converter.
>
> If anyone has insight on this, it would be welcome.
>
> This is how pandoc renders a verbatim section in docx:
>
> Markdown:
>
>    A level-two header
>    ------------------
>
> Docx:
>
> <w:br />
> <w:r>
> <w:rPr>
> <w:rStyle w:val="VerbatimChar" />
> </w:rPr>
> <w:t xml:space="preserve"></w:t>
> </w:r>
> <w:br />
> <w:r>
> <w:rPr>
> <w:rStyle w:val="VerbatimChar" />
> </w:rPr>
> <w:t xml:space="preserve">
> A level-two header
> </w:t>
> </w:r>
> <w:br />
> <w:r>
> <w:rPr>
> <w:rStyle w:val="VerbatimChar" />
> </w:rPr>
> <w:t xml:space="preserve">
> ------------------
> </w:t>
> </w:r>
>
> Note, there's an explicit <w:br /> (line break) between the first line and
> the second.  The LibreOffice converter seems to be ignoring this.  This may
> be a bug in LibreOffice, though it's also possible that I'm doing it wrong.
>
> +++ Oliver Schrenk [Aug 13 12 04:05 ]:
>> I mainly want to use pandoc to generate documentation for software and often use code examples.
>>
>> In markdown I format codeblocks using tabs as indentation and use `pandoc *.md -o book.docx`) to convert the files.
>>
>> When I open the result file in OpenOffice (on Linux and Windows) all line endings are gone, in Word all line endings are displayed correctly. I suspected issues with converting LF to CRLF and ran `unix2dos *.md` but it didn't help.
>>
>> Does anybody know a way around this?
>>
>> --
>> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>> To post to this group, send email to pandoc-discuss at googlegroups.com.
>> To unsubscribe from this group, send email to pandoc-discuss+unsubscribe at googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msg/pandoc-discuss/-/5W53P-rv6lgJ.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To post to this group, send email to pandoc-discuss at googlegroups.com.
> To unsubscribe from this group, send email to pandoc-discuss+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
You received this message because you are subscribed to the Google
Groups "pandoc-discuss" group.
To post to this group, send email to pandoc-discuss at googlegroups.com.
To unsubscribe from this group, send email to
pandoc-discuss+unsubscribe at googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


More information about the LibreOffice mailing list