gutenbergtools / ebookmaker

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

Layout of copyrighted paragraphs in generated .txt #222

Closed gbnewby closed 4 months ago

gbnewby commented 7 months ago

I looked at writers/TxtWriter.py and writers/TemplateStrings.py and it's not obvious to me what needs to change. This looks like it should be a straightforward fix.

The problem is that copyrighted text files are missing a blank line where they need one, and have an extra blank line where it's not needed.

See: https://www.gutenberg.org/cache/epub/5739/pg5739.txt

In this section, the sentence starting with, "This particular work is one of the few individual works protected" should have a blank line before it, and that paragraph should have only one blank line afterwards, not two.

Thanks for taking a look.