From 0859d20e39ee940904f2bfdc36572000109b2214 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 21 Dec 2010 14:06:20 +0100 Subject: [PATCH] minor fix --- librarian/pdf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/librarian/pdf.py b/librarian/pdf.py index a0a0899..bb1ba64 100644 --- a/librarian/pdf.py +++ b/librarian/pdf.py @@ -79,7 +79,6 @@ def move_motifs_inside(doc): """ moves motifs to be into block elements """ for master in doc.xpath('//powiesc|//opowiadanie|//liryka_l|//liryka_lp|//dramat_wierszowany_l|//dramat_wierszowany_lp|//dramat_wspolczesny'): for motif in master.xpath('motyw'): - print motif.text for sib in motif.itersiblings(): if sib.tag not in ('sekcja_swiatlo', 'sekcja_asterysk', 'separator_linia', 'begin', 'end', 'motyw', 'extra', 'uwaga'): # motif shouldn't have a tail - it would be untagged text -- 2.20.1