[4suite-checkins] In 4Suite/Ft/Xml/Xslt, files CommentElement.py
Jeremy Kloth
jkloth at 4suite.org
Fri Dec 8 11:14:39 MST 2006
Modified Files:
CommentElement.py
Log Message:
Allow for empty comments
ViewCVS diff:
http://cvs.4suite.org/viewcvs/4Suite/Ft/Xml/Xslt/CommentElement.py.diff?r1=1.9&r2=1.10
ViewCVS view:
http://cvs.4suite.org/viewcvs/4Suite/Ft/Xml/Xslt/CommentElement.py?rev=1.10&content-type=text/vnd.viewcvs-markup
Index: CommentElement.py
===================================================================
RCS file: /var/local/cvsroot/4Suite/Ft/Xml/Xslt/CommentElement.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -U2 -r1.9 -r1.10
--- CommentElement.py 24 Jun 2006 05:13:01 -0000 1.9
+++ CommentElement.py 8 Dec 2006 18:14:38 -0000 1.10
@@ -37,5 +37,5 @@
# but we are allowed to add a space. (XSLT 1.0 sec. 7.4)
content = content.replace(u'--', u'- -')
- if content[-1] == u'-':
+ if content[-1:] == u'-':
content += u' '
More information about the 4suite-checkins
mailing list