From 7c252e83a1eeaecb36cc9f40710077f90cf7460f Mon Sep 17 00:00:00 2001 From: wsuetholz Date: Wed, 10 Nov 2010 12:34:25 -0600 Subject: [PATCH] It seems that self.numWords and self.numChapters can on occasion be numeric instead of string, so use the str() function when building the string for the title page. --- output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.py b/output.py index 1d208256..c2f87c26 100644 --- a/output.py +++ b/output.py @@ -258,7 +258,7 @@ class EPubFanficWriter(FanficWriter): self._writeFile(titleFilePath, TITLE_ENTRY % ('Packaged:', createda)) tmpstr = self.adapter.getStoryRating() + " / " + self.adapter.getStoryUserRating() self._writeFile(titleFilePath, TITLE_ENTRY % ('Rating Age/User:', tmpstr)) - tmpstr = self.adapter.getNumChapters() + " / " + self.adapter.getNumWords() + tmpstr = str(self.adapter.getNumChapters()) + " / " + str(self.adapter.getNumWords()) self._writeFile(titleFilePath, TITLE_ENTRY % ('Chapters/Words:', tmpstr)) self._writeFile(titleFilePath, TITLE_ENTRY % ('Publisher:', self.adapter.getHost())) self._writeFile(titleFilePath, TITLE_ENTRY % ('Story ID:', self.adapter.getStoryId()))