View Single Post
Old 02-10-2011, 12:33 PM   #1
nhopton
Junior Member
nhopton began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2011
Device: Kindle 3
Markdown HTML problem

Hi, this is my first post here so it's bound to be silly.

I have Calibre 0.7.44 running under Ubuntu 10.10. What I have been trying to do is to use Markdown to produce HTML for importing into Calibre for onward conversion to MOBI.

The document is an old novel that includes passages of poetry and it is the poetry that is where the problem lies. The HTML from Markdown looks (to me, as a non-expert) reasonable, but when I convert this to MOBI using the default setting I get spurious blank lines inserted in the output. It's as if Calibre is inserting the odd <br /> tag.

Below, a sample of the HTML from Markdown.

Code:
<p>Before the Roman came to Rye or out to Severn strode, <br />
The rolling English drunkard made the rolling English road. <br />
A reeling road, a rolling road, that rambles round the shire, <br />
And after him the parson ran, the sexton and the squire; <br />
A merry road, a mazy road, and such as we did tread <br />
The night we went to Birmingham by way of Beachy Head.</p>

<p>I knew no harm of Bonaparte and plenty of the Squire, <br />
And for to fight the Frenchman I did not much desire; <br />
But I did bash their baggonets because they came arrayed <br />
To straighten out the crooked road an English drunkard made, <br />
Where you and I went down the lane with ale-mugs in our hands, <br />
The night we went to Glastonbury by way of Goodwin Sands.</p>
I'd be grateful for any advice on this problem.

Regards, Nick.

Last edited by nhopton; 02-10-2011 at 12:41 PM.
nhopton is offline   Reply With Quote