From 345440b543a72dd8b55e674664123fe935fddabf Mon Sep 17 00:00:00 2001 From: kthoden Date: Tue, 29 Sep 2020 14:48:48 +0200 Subject: [PATCH] Strip characters from link text --- src/imxml2epub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imxml2epub.py b/src/imxml2epub.py index 1a5ab36..dd2e147 100755 --- a/src/imxml2epub.py +++ b/src/imxml2epub.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- -# Time-stamp: <2020-09-25 14:10:21 (kthoden)> +# Time-stamp: <2020-09-29 14:48:37 (kthoden)> """ Convert a customized DocBook XML file into a set of files that constitute the contents of an EPUB file. @@ -1753,7 +1753,7 @@ class FootnoteError(Exception): reference_type = xmlReference.get("type") if reference_type == "text": tmpTail = xmlReference.tail or "" - strResult = xmlReference.text + strResult = xmlReference.text.strip() elif reference_type == "collage": tmpTail = xmlReference.tail or "" logging.debug("Found reference to a Hyperimage collage.")