fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
121ab50
)
fix for error msg
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 27 May 2022 11:00:03 +0000
(13:00 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 27 May 2022 11:00:03 +0000
(13:00 +0200)
src/librarian/elements/base.py
patch
|
blob
|
history
diff --git
a/src/librarian/elements/base.py
b/src/librarian/elements/base.py
index
46ae29f
..
d17747d
100644
(file)
--- a/
src/librarian/elements/base.py
+++ b/
src/librarian/elements/base.py
@@
-221,7
+221,7
@@
class WLElement(etree.ElementBase):
if self.SECTION_PRECEDENCE:
assert isinstance(self.getparent(), (Master, DlugiCytat, PoezjaCyt, Footnote)), \
'Header {} inside a <{}> instead of a master.'.format(
if self.SECTION_PRECEDENCE:
assert isinstance(self.getparent(), (Master, DlugiCytat, PoezjaCyt, Footnote)), \
'Header {} inside a <{}> instead of a master.'.format(
- etree.tostring(self), self.getparent().tag)
+ etree.tostring(self
, encoding='unicode'
), self.getparent().tag)
for c in self:
if isinstance(c, WLElement):
for c in self:
if isinstance(c, WLElement):