peg-multimarkdown icon indicating copy to clipboard operation
peg-multimarkdown copied to clipboard

Tabs Added to Preformatted Text in ODF format

Open Frimkron opened this issue 12 years ago • 3 comments

I'm having an issue whereby spaces in my code blocks are being converted to tabs when I convert to odf.

For example, the following diagram:

    +-----+      +-----+
    |  A  | ---> |  B  |
    +-----+      +-----+

Gets converted to the following markup (I've added linebreaks for readability):

<text:p text:style-name="Preformatted Text">
    +-----+<text:tab/>  +-----+<text:line-break/>
    |  A  | ---&gt; |  B  |<text:line-break/>
    +-----+<text:tab/>  +-----+<text:line-break/>
</text:p>

The added <text:tab/> elements cause the preformatted text to look wrong when opened in Open Office, for example.

I'm using multimarkdown version 3.5.1

Frimkron avatar Mar 07 '12 12:03 Frimkron