From 62c4afedccde8948a44ef0ea40afcd3438b3d615 Mon Sep 17 00:00:00 2001 From: drfho Date: Wed, 3 Jan 2024 15:26:42 +0100 Subject: [PATCH] Fix: MetaObj XML-Import: XML-Parsing of list-like attrs REF. https://github.com/zms-publishing/ZMS/commit/920516f1bad431afc0c31b818d80b6025c9a0a87 --- Products/zms/_xmllib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Products/zms/_xmllib.py b/Products/zms/_xmllib.py index 68cf3e9b..7c68d241 100644 --- a/Products/zms/_xmllib.py +++ b/Products/zms/_xmllib.py @@ -126,9 +126,9 @@ def getXmlType(v): def getXmlTypeSaveValue(v, attrs): # Strip. if isinstance(v, str): - while len(v) > 0 and v[0] <= ' ': + while len(v) > 0 and v[0] <= ' ' and v[0] != '\t': v = v[1:] - while len(v) > 0 and v[-1] <= ' ': + while len(v) > 0 and v[-1] <= ' ' and v[-1] != '\t': v = v[:-1] # Type. t = attrs.get('type', '?')