From 91f6b0116fa5b933488f3240924b3baa507a4221 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 9 Nov 2010 10:50:17 +0100 Subject: [PATCH] minor fixes --- librarian/pdf.py | 4 ++-- librarian/text.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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. -- 2.20.1