This is even better

This commit is contained in:
Veronica K. B. Olsen committed 2020-05-28 00:29:45 +02:00
1 parent 5be945b901
commit f9e2d57fa7
5 files changed
+15 -15

No files matched your search

+5 -5
View File
@@ -565,11 +565,11 @@ class Tokenizer():
def _formatHeading(self, theTitle, theText):
"""Replaces the %keyword% strings.
"""
theTitle = theTitle.replace(r"%title%", theText)
theTitle = theTitle.replace(r"%ch%", str(self.numChapter))
theTitle = theTitle.replace(r"%sc1%", str(self.numChScene))
theTitle = theTitle.replace(r"%sc2%", str(self.numAbsScene))
theTitle = theTitle.replace(r"%chword%", numberToWord(self.numChapter,"en"))
theTitle = theTitle.replace(r"%title%", theText)
theTitle = theTitle.replace(r"%ch%", str(self.numChapter))
theTitle = theTitle.replace(r"%sc%", str(self.numChScene))
theTitle = theTitle.replace(r"%sca%", str(self.numAbsScene))
theTitle = theTitle.replace(r"%chw%", numberToWord(self.numChapter,"en"))
return theTitle
# END Class Tokenizer