gutenbergtools / ebookmaker

The Project Gutenberg tool to generate EPUBs and other ebook formats.
GNU General Public License v3.0
84 stars 18 forks source link

use a gentler fix for disallowed children of body #219

Closed eshellman closed 8 months ago

eshellman commented 9 months ago

content like

<body><br>
When Richard Steele, in number 555 of his <i>Spectator</i>, signed its last
paper and named those who had most helped him 'to keep up the spirit of
so long and approved a performance,' he gave chief honour to one who had
on his page, as in his heart, no name but Friend. This was...
</body>

(inline content as children of <body>) gets converted to

<body><p><br></p>
<p>When Richard Steele, in number 555 of his </p>
<p><i>Spectator</i></p>
<p>, signed its last
paper and named those who had most helped him 'to keep up the spirit of
so long and approved a performance,' he gave chief honour to one who had
on his page, as in his heart, no name but Friend. This was...
</p>
</body>

introducing unintended linebreaks. It would be better to use <div style="display: inline"><div> as a wrapper

eshellman commented 8 months ago

investigating further, this turns out to affect books with source files using HTML4.01 Transitional. Will be rolling out a fix. 23% of books #11000-11999 use this type as do 16% of books #21000-21999.