Fix bug in HtmlRuleset description parsing

develop
Sven Slootweg 12 years ago
parent b26e1abfc7
commit 96338fc1d5

@ -82,7 +82,7 @@ class HtmlRuleset(zippydoc.TransformationRuleset):
description = item[1] description = item[1]
if len(description) > 80: if len(description) > 80:
matches = re.match("^(.{0,80})\W", data) matches = re.match("^(.{0,80})\W", description)
description = matches.group(1) + "..." description = matches.group(1) + "..."
description = zippydoc.Value(description).transform(self) description = zippydoc.Value(description).transform(self)

Loading…
Cancel
Save