X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9b533fdbfd08bd764744ae3a0d4717c87b61cf18..18948ce1d84878c6307f2d0b732a9dbd03778cfb:/src/documents/xml_tools.py?ds=sidebyside diff --git a/src/documents/xml_tools.py b/src/documents/xml_tools.py index ac145db4..d7e3fcfd 100644 --- a/src/documents/xml_tools.py +++ b/src/documents/xml_tools.py @@ -107,7 +107,7 @@ def split_xml(text): # find the chapter's title name_elem = deepcopy(element) - for tag in 'extra', 'motyw', 'pa', 'pe', 'pr', 'pt', 'uwaga': + for tag in 'extra', 'motyw', 'pa', 'pe', 'pr', 'pt', 'ptrad', 'uwaga': for a in name_elem.findall('.//' + tag): a.text='' del a[:]