X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/eae370b75207e1dc15f5f3f7ee7a402c7721d9a8..1f9c252b0da609f7dff02ab74b60f39f57dd2e3d:/src/librarian/elements/base.py diff --git a/src/librarian/elements/base.py b/src/librarian/elements/base.py index 46ae29f..d17747d 100644 --- 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( - etree.tostring(self), self.getparent().tag) + etree.tostring(self, encoding='unicode'), self.getparent().tag) for c in self: if isinstance(c, WLElement):