From: Radek Czajka Date: Tue, 9 Nov 2010 09:50:17 +0000 (+0100) Subject: minor fixes X-Git-Tag: 1.7~256 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/91f6b0116fa5b933488f3240924b3baa507a4221?ds=inline;hp=--cc minor fixes --- 91f6b0116fa5b933488f3240924b3baa507a4221 diff --git a/librarian/pdf.py b/librarian/pdf.py index 94441db..0b80a2d 100644 --- a/librarian/pdf.py +++ b/librarian/pdf.py @@ -167,6 +167,8 @@ def transform(provider, slug, output_file=None, output_dir=None, make_dir=False, # Parse XSLT try: + document = load_including_children(provider, slug) + # check for latex packages if not package_available('morefloats', 'maxfloats=19', verbose=verbose): document.edoc.getroot().set('old-morefloats', 'yes') @@ -176,8 +178,6 @@ LaTeX `morefloats' package is older than v.1.0c or not available at all. Some documents with many motifs in long stanzas or paragraphs may not compile. ==============================================================================""" - document = load_including_children(provider, slug) - # hack the tree move_motifs_inside(document.edoc) hack_motifs(document.edoc) diff --git a/librarian/text.py b/librarian/text.py index b7fbad6..57c2a73 100644 --- a/librarian/text.py +++ b/librarian/text.py @@ -13,7 +13,7 @@ import re functions.reg_substitute_entities() functions.reg_wrap_words() -functions.reg_split() +functions.reg_strip() TEMPLATE = u"""\ Kodowanie znaków w dokumencie: UTF-8.