From: Radek Czajka Date: Tue, 21 Dec 2010 13:06:20 +0000 (+0100) Subject: minor fix X-Git-Tag: 1.7~237 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/0859d20e39ee940904f2bfdc36572000109b2214?ds=sidebyside;hp=f09227d78c24b17a0e86b1d192ba8c26d9e06aef minor fix --- 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