I think the problem is, that there are linefeeds before "\n" in multiline texts. Maybe.

Right, I think this is the problem. These are no linefeeds, but carriage returns. Could you check, whether the attached patch fixes it?


--
Index: /home/tschneider/Projekte/qooxdoo.namespaces/tools/generate-dev/tree.py
===================================================================
--- /home/tschneider/Projekte/qooxdoo.namespaces/tools/generate-dev/tree.py     
(revision 3377)
+++ /home/tschneider/Projekte/qooxdoo.namespaces/tools/generate-dev/tree.py     
(working copy)
@@ -180,7 +180,7 @@
 
 
 def escapeJsonChars(text):
-  return text.replace('"', '\\"').replace('\n', '\\n')
+  return text.replace('"', '\\"').replace('\n', '\\n').replace('\r', '\\r')
 
 
 
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to