X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/f8e5f031c04122d65d1066077be3920ae95518ae..e82ceed3d3d72dc75697449285a67e0a42a9cc56:/librarian/html.py diff --git a/librarian/html.py b/librarian/html.py index 6551995..c2e0dea 100644 --- a/librarian/html.py +++ b/librarian/html.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# +# This file is part of Librarian, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# import os import cStringIO import re @@ -19,9 +23,9 @@ ENTITY_SUBSTITUTIONS = [ ] STYLESHEETS = { - 'legacy': 'book2html.xslt', - 'full': 'wl2html_full.xslt', - 'partial': 'wl2html_partial.xslt' + 'legacy': 'xslt/book2html.xslt', + 'full': 'xslt/wl2html_full.xslt', + 'partial': 'xslt/wl2html_partial.xslt' } def get_stylesheet(name): @@ -67,7 +71,6 @@ def transform(input, output_filename=None, is_file=True, \ return result return True else: - print "[Librarian] didn't find any paragraphs" return "" except KeyError: raise ValueError("'%s' is not a valid stylesheet.")