2008-11-17 | Paul Boddie | raw files shortlog changelog graph | Fixed isinstance test, fixing multiple-choice selections. | |
XSLForms/Fields.py (file) |
1.1 --- a/XSLForms/Fields.py Mon Nov 17 01:50:18 2008 +0100 1.2 +++ b/XSLForms/Fields.py Mon Nov 17 19:53:40 2008 +0100 1.3 @@ -164,7 +164,7 @@ 1.4 1.5 # Remove CR characters, ignoring non-textual parameters. 1.6 1.7 - if isinstance(value, (str, unicode)): 1.8 + if isinstance(subvalue, (str, unicode)): 1.9 subnode.setAttributeNS(EMPTY_NAMESPACE, t[2], subvalue.replace("\r", "")) 1.10 1.11 def complete_selectors(self, selectors, fields, documents, create):