Strip leading newline so it doesn't (falsely) show up in appengine logs as error.

This commit is contained in:
Jim Miller 2011-04-25 19:57:40 -05:00
parent 666e9666cd
commit 1426626d0a

View file

@ -135,7 +135,7 @@ class Whofic(FanfictionSiteAdapter):
metadata = a.findParent('td')
metadatachunks = metadata.__str__('utf8').split('<br />')
# process metadata for this story.
self.storyDescription = metadatachunks[1]
self.storyDescription = metadatachunks[1].strip()
# the stuff with ' - ' separators
moremeta = metadatachunks[2]