View Single Post
Old 03-18-2011, 05:52 AM   #1
rockeh
Junior Member
rockeh began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2010
Device: iriver Story
TXT to EPUB conversion issue

Hi guys, I have a weird issue with TXT > EPUB conversion: all TXT files I have are marked up with markdown, but the paragraph structure doesn't carry across into EPUB. For instance, if I have

Code:
# Chapter

Lorem ipsum.

Dolor sit.

* * *

Amet
I expect the output to be

Code:
<h1 class="calibre4">Chapter</h1>
<p class="calibre3">Lorem ipsum.</p>
<p class="calibre3">Dolor sit.</p>
<hr class="calibre6"/>
<p class="calibre3">Amet</p>
However, what I get instead is this:

Code:
<h1 class="calibre4">Chapter</h1>
<p class="calibre3">Lorem ipsum.
Dolor sit.
<hr class="calibre6"/>
Amet</p>
IE, a single paragraph.

I've tried setting the line endings to off, print, auto, all the values; none of this helps. The strange thing is that with "off" and "markdown" on a different computer, the conversion works just fine.

The TXT lines are ended with CR/LF, UTF-8 (no BOM) encoded, and I'm using calibre 0.7.49.

Any help is appreciated
rockeh is offline   Reply With Quote