Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-12-2012, 08:54 AM   #1
felixv
Junior Member
felixv began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2012
Device: Sony PRS-T1
Question markdown & blockquote: conversion fails

Converting the following txt file with calibre 0.8.64 to lit

Code:
Paragraph 1.

>Blockquote line 1.

>Blockquote line 2.

Paragraph 2.
results in

Code:
<p>Paragraph 1.</p>
<blockquote>
<p>Blockquote line 1.
Blockquote line 2.
Paragraph 2.</p>
</blockquote>
The closing </blockquote> appears after the second paragraph instead of before. I tried the serveral paragraph style options and double empty lines but no avail. Any ideas would be very much appreciated.
felixv is offline   Reply With Quote
Old 08-12-2012, 09:13 PM   #2
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,786
Karma: 3973173
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
I just tried your sample txt file in a txt-to-epub conversion. This is what the resulting epub's html file looked like, which looks correct to me:
Code:
<p class="calibre1">Paragraph 1.</p>
<blockquote class="calibre2">
<p class="calibre1">Blockquote line 1.</p>
<p class="calibre1">Blockquote line 2.</p>
</blockquote>
<p class="calibre1">Paragraph 2.</p>
I used the following setting :
Convert - TXT Input - Formatting style - markdown

There isn't really enough in the sample txt file to advise on the best setting for Paragraph style on the same page, but auto, block or single all worked for me.

BTW welcome to MobileRead
jackie_w is offline   Reply With Quote
 
Enthusiast
Old 08-13-2012, 02:31 AM   #3
felixv
Junior Member
felixv began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2012
Device: Sony PRS-T1
Thanks for the help.

While now knowing that it could work I tried again. And it works: I had to remove the 'txt input' option 'Remove indents at the beginning of lines.' (not that obvious to me).
felixv is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Markdown: Anchor inconsistency on Kindle & Sony Snorkledorf Conversion 3 01-05-2012 09:06 AM
Markdown conversion: line spacing & lists Snorkledorf Conversion 16 11-09-2011 06:51 AM
Markdown / Blockquote conversion giving unexpected results Agama Conversion 23 02-23-2011 11:16 AM
PDF conversion fails farble1670 Calibre 2 10-09-2010 07:28 PM
Conversion from LIT fails JSWolf Calibre 1 01-22-2010 12:22 PM


All times are GMT -4. The time now is 10:58 PM.


MobileRead.com is a privately owned, operated and funded community.