From 96338fc1d5727ce1f3072b753a7e817563b5b9d9 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 10 Jan 2013 02:00:47 +0100 Subject: [PATCH] Fix bug in HtmlRuleset description parsing --- zpy2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zpy2html.py b/zpy2html.py index 7330883..8e8c292 100644 --- a/zpy2html.py +++ b/zpy2html.py @@ -82,7 +82,7 @@ class HtmlRuleset(zippydoc.TransformationRuleset): description = item[1] if len(description) > 80: - matches = re.match("^(.{0,80})\W", data) + matches = re.match("^(.{0,80})\W", description) description = matches.group(1) + "..." description = zippydoc.Value(description).transform(self)