dabo Commit
Revision 1781
Date: 2006-01-12 14:57:43 -0800 (Thu, 12 Jan 2006)
Author: paul
Changed:
U trunk/dabo/lib/xmltodict.py
Log:
Fixed two problems having to do with saving code xml:
1) We don't need to (and don't want to) convert < to < because it is in a
CDATA comment anyway, and Python doesn't know what to do with those tokens.
2) I may have accidentally done this, but the </code> closing tag was appearing
after every method, resulting in mismatched xml.
Diff:
Modified: trunk/dabo/lib/xmltodict.py
===================================================================
--- trunk/dabo/lib/xmltodict.py 2006-01-12 22:04:14 UTC (rev 1780)
+++ trunk/dabo/lib/xmltodict.py 2006-01-12 22:57:43 UTC (rev 1781)
@@ -167,12 +167,10 @@
if not cd.endswith(os.linesep):
cd += os.linesep
- cd = cd.replace("<", "<")
-
ret +=
"%s<%s><![CDATA[%s%s]]>%s%s</%s>%s" % (methodTab,
mthd, os.linesep, cd,
os.linesep,
methodTab, mthd,
os.linesep)
- ret += "%s</code>%s" % ("\t" *
(level+1), os.linesep)
+ ret += "%s</code>%s" % ("\t" * (level+1),
os.linesep)
if dct.has_key("children") and len(dct["children"]) > 0:
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev