I mentioned this in the Viewing software forum, but I thought I'd bring it up here too since it involves calibre.
I recently used calibre (0.6.5 linux) to convert an HTML document to an epub, commandline:
Code:
ebook-convert imp-c.html imp.epub --output-profile="sony" --chapter="//h:h2" --cover="CoverDesign.jpg" --authors="Bertrand Russell" --title="Introduction to Mathematical Philosophy" --author-sort="Russell, Bertrand" --extract-to=epub_extract
In the HTML source used to generate it, the chapter headings looked like this:
Code:
<h2 class="chaptertitle" id="chapter13">CHAPTER
XIII: THE AXIOM OF INFINITY AND LOGICAL TYPES</h2>
...with a (typically harmless) linefeed after "CHAPTER".
Calibre's chapter detection put items like the following into the toc.ncx zipped inside the epub:
Code:
<navPoint id="cdd7d91a-1d3f-48d7-8546-19fc1a8ae123" playOrder="16">
<navLabel>
<text>CHAPTER
XIII: THE AXIOM OF INFINITY AND LOGICAL TYPES</text>
</navLabel>
<content src="imp-c_split_16.html#chapter13"/>
</navPoint>
Again with a linefeed after "CHAPTER".
On my Sony, the TOC was fine, but if viewed in ADE, the linebreak in the TOC file seems to result in parts of chapter name displayed on top of themselves:
If I changed the toc.ncx file inside the ePub to avoid the linefeed, as in:
Code:
<navPoint id="cdd7d91a-1d3f-48d7-8546-19fc1a8ae123" playOrder="16">
<navLabel>
<text>CHAPTER XIII: THE AXIOM OF INFINITY AND LOGICAL TYPES</text>
</navLabel>
<content src="imp-c_split_16.html#chapter13"/>
</navPoint>
(Or, equivalently, changed the source HTML and reconverted...) ...then things worked fine in ADE.
Insofar as this could be considered a "bug", it seems like it's a bug with ADE, since I don't think linefeeds in XML files are ever supposed to do anything (and this looks like an XML file). But you still might consider altering how calibre generates these files to avoid this issue.
(Along similar lines, I've noticed that calibre's viewer itself often responds inappropriately to linebreaks in source documents...)