From: Marcin Koziej Date: Fri, 8 Feb 2013 09:32:29 +0000 (+0100) Subject: fixes X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/48d19713a178ae0e93df463f9675399295f75515?hp=962fa8eec7af86eaa9c7a2e1e493efb8654cdfa6 fixes --- 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.