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

multiline START OF line mishandled #209

Closed asylumcs closed 9 months ago

asylumcs commented 11 months ago

In an uploaded text file, a multi-line "START OF" line looks like this:

*** START OF THE PROJECT GUTENBERG EBOOK DANGER SIGNALS
REMARKABLE, EXCITING AND UNIQUE EXAMPLES OF THE BRAVERY, DARING AND
STOICISM IN THE MIDST OF DANGER OF TRAIN DISPATCHERS AND RAILROAD
ENGINEERS ***

In the generated text file, that gets an unexpected set of asterisks on the first line and it drops a line:

*** START OF THE PROJECT GUTENBERG EBOOK DANGER SIGNALS ***
STOICISM IN THE MIDST OF DANGER OF TRAIN DISPATCHERS AND RAILROAD
ENGINEERS ***

This can be seen in these files: uploaded: https://www.gutenberg.org/files/19007/19007-0.txt generated: https://www.gutenberg.org/cache/epub/19007/pg19007.txt

eshellman commented 11 months ago

sorry, can't fix this. use a single line or truncate title at 80 characters

eshellman commented 11 months ago

need to check something

eshellman commented 11 months ago

Thanks @asylumcs that was a real bug

asylumcs commented 11 months ago

Glad to help.