X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6e88635c94b36eaff84bd4274983af977986b699..7e1849d7545fcfa73dc3d3fd29d3a1325b7c871b:/apps/catalogue/xml_tools.py?ds=inline

diff --git a/apps/catalogue/xml_tools.py b/apps/catalogue/xml_tools.py
old mode 100755
new mode 100644
index 522806b6..d6a9333b
--- a/apps/catalogue/xml_tools.py
+++ b/apps/catalogue/xml_tools.py
@@ -230,7 +230,7 @@ def split_xml(text):
             for a in name_elem.findall('.//' + tag):
                 a.text=''
                 del a[:]
-        name = etree.tostring(name_elem, method='text', encoding='utf-8')
+        name = etree.tostring(name_elem, method='text', encoding='utf-8').strip()
 
         # in the original, remove everything from the start of the last chapter
         parent = element.getparent()