View Single Post
Old 08-10-2010, 10:51 PM   #1
billingd
Enthusiast
billingd shines like a glazed doughnut.billingd shines like a glazed doughnut.billingd shines like a glazed doughnut.billingd shines like a glazed doughnut.billingd shines like a glazed doughnut.billingd shines like a glazed doughnut.billingd shines like a glazed doughnut.billingd shines like a glazed doughnut.billingd shines like a glazed doughnut.billingd shines like a glazed doughnut.billingd shines like a glazed doughnut.
 
Posts: 42
Karma: 8616
Join Date: May 2010
Location: Melbourne, Australia
Device: Kobo
Preserving <br /> on epub -> txt conversion

Does calibre have an option to preserve <br /> breaks when exporting from epub to txt? I have looked but can't find one.

I am trying to preserve the formatting of poetry, etc embedded in a book.

The current behavior is (roughly) a conversion from

Code:
<p>line 1,<br/>
line 2,<br/>
line 3,<br/>
line 4.</p>
to

Code:
line 1, line 2, line 3, line 4.
I want

Code:
line 1,
line 2,
line 3,
line 4.
I have attached a simple test case. epub is input and txt is output.

Last edited by billingd; 08-10-2010 at 11:19 PM. Reason: Attach simple test case
billingd is offline   Reply With Quote