diff --git a/scripts/ebook/hpmor-ebook.tex b/scripts/ebook/hpmor-ebook.tex index d61c9a8a..398603a0 100644 --- a/scripts/ebook/hpmor-ebook.tex +++ b/scripts/ebook/hpmor-ebook.tex @@ -17,6 +17,7 @@ \renewcommand{\headline}[1]{\begin{center}\textcolor{headline}{#1}\end{center}} \renewcommand{\inlineheadline}[1]{\textcolor{headline}{#1}} \renewcommand{\newspaperHeader}[1]{#1} +\renewcommand{\hplettrineextrapara}[0]{} \include{chapters/hpmor-chapter-000} \part{Harry James Potter-Evans-Verres and the Methods of Rationality} diff --git a/scripts/ebook/step_3.py b/scripts/ebook/step_3.py index 337f2faf..9aae4073 100755 --- a/scripts/ebook/step_3.py +++ b/scripts/ebook/step_3.py @@ -42,10 +42,7 @@ ) # some cleanup - # TODO: removed when switching to Ubuntu >= 23.04, - # since it let to a problem - # in line 31 of tmp/hpmor-epub-3-flatten-mod.tex - # cont = cont.replace("\\hplettrineextrapara", "") + cont = cont.replace("\\hplettrineextrapara\n", "") # additional linebreaks in verses of chapter 64 cont = cont.replace("\\\\\n\n", "\n\n")