I'm trying to convert HTML to epub so I can read the books on my Android tablet using Aldiko. Everything converts fine, and if I read the epubs on my PC using Adobe Digital Editions everything looks fine. However when I read them with Aldiko on my tablet all the paragraphs have the first line indented.
I suspect this is a problem with Aldiko not Calibre. I used the --debug-pipeline option to save the intermediate processing, and the HTML file in the processed directory isn't indented when I view it in Internet Explorer. Also if I convert to mobi the text isn't indented in the Kindle reader.
But not every book is indented in Aldiko, so there must be something in the epub I've produced that causes Aldiko to display paragraphs with a first line indent. Has anyone come across this problem, and can anyone suggest how I can modify my source HTML or the ebook-convert options to avoid the problem.
The command I'm using is:
Code:
ebook-convert "My Book.html" .epub --authors "<author>" --title "<title>" --cover "My Book.jpg"
Thanks,
John Rennie
Later: while messing around I discovered that if I convert to mobi then convert to epub the paragraphs aren't indented. When I look at the debug-pipeline files one obvious difference is in the stylesheet and specifically that when converting from mobi to epub the .calibre2 style includes "text-indent: 0;". This isn't in the .calibre2 style when I convert from html to epub.
Maybe there is some setting in Aldiko that indents paragraphs unless the style specifically sets the indent to zero. I'll ask in the Aldiko forum. In the mean time is there an easy way I can specify a "text-indent: 0;" using an option for ebook-convert or do I need to go back and edit the source html?