From a84c5dea191f9dc812084ebb79118f663d4967a5 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Tue, 30 Jun 2015 22:44:06 -0500 Subject: [PATCH] Remove outdated comment. --- fanficfare/writers/writer_epub.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fanficfare/writers/writer_epub.py b/fanficfare/writers/writer_epub.py index 52deae9..d59832b 100644 --- a/fanficfare/writers/writer_epub.py +++ b/fanficfare/writers/writer_epub.py @@ -661,10 +661,6 @@ div { margin: 0pt; padding: 0pt; } # as one line. This causes problems for nook(at # least) when the chapter size starts getting big # (200k+) - #fullhtml = fullhtml.replace('

','

\n').replace('
','
\n') - # The replaces above added tons of extra newlines - # during *each* epub update. The regexp version adds - # only one and removes any extra. fullhtml = re.sub(r'(

|
)\n*',r'\1\n',fullhtml) outputepub.writestr("OEBPS/file%04d.xhtml"%(index+1),fullhtml.encode('utf-8'))