From e8993f5e4209eb1ab0b6435691df9217d843c76d Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 21 Jun 2016 10:30:17 +0200 Subject: [PATCH] fix conversion wl2 to wl1 --- apps/catalogue/models/book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/catalogue/models/book.py b/apps/catalogue/models/book.py index f58fe108..b0862f00 100755 --- a/apps/catalogue/models/book.py +++ b/apps/catalogue/models/book.py @@ -463,7 +463,7 @@ class Book(models.Model): i1 = etree.parse(f2) for sect in i1.findall('//section'): - if sect[0].text == u'Przebieg zajęć': + if sect[0].text and sect[0].text.strip() == u'Przebieg zajęć': # Prostujemy. first = sect.find('section') subs = first.findall('.//section') -- 2.20.1