fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove direct verse styling from html.
[librarian.git]
/
src
/
librarian
/
builders
/
sanitize.py
diff --git
a/src/librarian/builders/sanitize.py
b/src/librarian/builders/sanitize.py
index
4d7f7f9
..
74a9b44
100644
(file)
--- a/
src/librarian/builders/sanitize.py
+++ b/
src/librarian/builders/sanitize.py
@@
-1,3
+1,6
@@
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
+#
from lxml import etree
from librarian import OutputFile
from lxml import etree
from librarian import OutputFile
@@
-6,7
+9,7
@@
class Sanitizer:
identifier = 'sanitize'
file_extension = 'xml2'
identifier = 'sanitize'
file_extension = 'xml2'
- def build(self, document):
+ def build(self, document
, **kwargs
):
doc = document.tree.getroot() # TODO: copy
doc.sanitize()
return OutputFile.from_bytes(
doc = document.tree.getroot() # TODO: copy
doc.sanitize()
return OutputFile.from_bytes(