In Products.GenericSetup.utils, class NodeAdapterBase:

Method _getNodeText does not respect xml:whitespace="preserve":

    def _getNodeText(self, node):
        text = ''
        for child in node.childNodes:
            if child.nodeName != '#text':
            lines = [ line.lstrip() for line in child.nodeValue.splitlines() ]
            text += '\n'.join(lines)
        return text

As a result, a node like this:

    <property name="sep" type="string" xml:whitespace="preserve"> to </property>

doesn't work to make sure that " to " is stored, not "to ".

Does the xml python library support using xml:whitespace="preserve"? How can
this be fixed?


Zope-CMF maillist  -

See for bug reports and feature requests

Reply via email to