From 48d19713a178ae0e93df463f9675399295f75515 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Fri, 8 Feb 2013 10:32:29 +0100 Subject: [PATCH 1/1] fixes --- librarian/pyhtml.py | 2 ++ librarian/xmlutils.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index e645059..d781abf 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -196,6 +196,8 @@ class Exercise(EduModule): self.question_counter = 0 super(Exercise, self).__init__(*args, **kw) + handle_opis = tag('div', 'description') + def handle_rozw_kom(self, element): return u"""""" diff --git a/librarian/xmlutils.py b/librarian/xmlutils.py index 819c9a4..f5cd213 100644 --- a/librarian/xmlutils.py +++ b/librarian/xmlutils.py @@ -96,7 +96,7 @@ class Xmill(object): if handler is None: pre = [self.filter_text(element.text)] - post = [] + post = [self.filter_text(element.tail)] else: vals = handler(element) # depending on number of returned values, vals can be None, a value, or a tuple. -- 2.20.1