From b10cdf123648beb76120194d7f9bb69fc8433ede Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Wed, 13 Feb 2013 14:17:33 +0100 Subject: [PATCH] we should just generate html for luki --- librarian/pyhtml.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index 43dea65..a6f6686 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -357,9 +357,12 @@ class Luki(Exercise): return question.xpath(".//luka") def solution_html(self, piece): - return piece.text + ''.join( - [etree.tostring(n, encoding=unicode) - for n in piece]) + sub = EduModule() + return sub.generate(piece) + # print piece.text + # return piece.text + ''.join( + # [etree.tostring(n, encoding=unicode) + # for n in piece]) def handle_pytanie(self, element): qpre, qpost = super(Luki, self).handle_pytanie(element) -- 2.20.1