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@gmail.com>
Date: 2012/8/14
Subject: Re: LineEnding issues, .md > .docx
To: "pandoc-discuss@googlegroups.com" <pandoc-discuss@googlegroups.com>
Cc: "pandoc-discuss@googlegroups.com" <pandoc-discuss@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@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@googlegroups.com.
To unsubscribe from this group, send email to pandoc-discuss+unsubscribe@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@googlegroups.com.
To unsubscribe from this group, send email to pandoc-discuss+unsubscribe@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@googlegroups.com.
To unsubscribe from this group, send email to
pandoc-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Context
- Fwd: LineEnding issues, .md > .docx · Joop Kiefte
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.