Commit 99b27d3f authored by Sebastien Robin's avatar Sebastien Robin

modified a bit my previous fix about string with --


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@923 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4f3d274f
......@@ -655,8 +655,6 @@ class XMLSyncUtilsMixin(SyncCode, ActiveObject):
elif signature.getStatus()==self.PARTIAL:
xml_string = signature.getPartialXML()
if xml_string.count('\n') > self.MAX_LINES:
if xml_string.find('--') > 0: # This make comment fails, so we need to replace
xml_string = xml_string.replace('--','@-@@-@')
i = 0
more_data=1
short_string = ''
......@@ -668,6 +666,8 @@ class XMLSyncUtilsMixin(SyncCode, ActiveObject):
signature.setPartialXML(rest_string)
xml_string = short_string
status = self.PARTIAL
if xml_string.find('--') > 0: # This make comment fails, so we need to replace
xml_string = xml_string.replace('--','@-@@-@')
xml_string = '<!--' + xml_string + '-->'
signature.setStatus(status)
if signature.getAction()=='Replace':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment