dabo Commit
Revision 2031
Date: 2006-03-24 06:51:35 -0800 (Fri, 24 Mar 2006)
Author: ed

Changed:
U   trunk/dabo/lib/DesignerXmlConverter.py

Log:
There are some problems running code under Windows. This is a an attempt to fix 
it.


Diff:
Modified: trunk/dabo/lib/DesignerXmlConverter.py
===================================================================
--- trunk/dabo/lib/DesignerXmlConverter.py      2006-03-23 21:42:35 UTC (rev 
2030)
+++ trunk/dabo/lib/DesignerXmlConverter.py      2006-03-24 14:51:35 UTC (rev 
2031)
@@ -377,7 +377,8 @@
                """Takes code and indents it to the desired level"""
                lns = cd.splitlines()
                indent = "\t" * level
-               jn = os.linesep + indent
+               # Compiled code needs newlines, no matter what platform.
+               jn = "\n" + indent
                ret = jn.join(lns)
                if ret:
                        # Need to add the indent to the first line, too




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to