fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Missing files from previous commit.
[librarian.git]
/
librarian
/
html.py
diff --git
a/librarian/html.py
b/librarian/html.py
index
6551995
..
c2e0dea
100644
(file)
--- a/
librarian/html.py
+++ b/
librarian/html.py
@@
-1,4
+1,8
@@
# -*- coding: utf-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
import os
import cStringIO
import re
@@
-19,9
+23,9
@@
ENTITY_SUBSTITUTIONS = [
]
STYLESHEETS = {
]
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):
}
def get_stylesheet(name):
@@
-67,7
+71,6
@@
def transform(input, output_filename=None, is_file=True, \
return result
return True
else:
return result
return True
else:
- print "[Librarian] didn't find any paragraphs"
return "<empty />"
except KeyError:
raise ValueError("'%s' is not a valid stylesheet.")
return "<empty />"
except KeyError:
raise ValueError("'%s' is not a valid stylesheet.")