Mercurial > hg > lxmldump
changeset 37:e176fcfc0235
Fix overstripping of concatenated strings.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 25 May 2021 23:25:44 +0300 |
parents | 4c8aafff8c5f |
children | 0e586b4ab62c |
files | lxmldump.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lxmldump.py Tue May 25 23:19:04 2021 +0300 +++ b/lxmldump.py Tue May 25 23:25:44 2021 +0300 @@ -239,7 +239,7 @@ stmp += pkk_ptr_to_text(pnode) else: if isinstance(pnode.text, str): - stmp += pkk_str_annotate(pnode.tag, pkk_str_clean(pnode.text).strip()) + stmp += pkk_str_annotate(pnode.tag, pkk_str_clean(pnode.text)) if isinstance(pnode.tail, str): stmp += pkk_str_clean(pnode.tail)