[Formed-commits] r347 - trunk/formed/formed/io

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Apr 6 12:32:06 CEST 2010


Author: torsten
Date: 2010-04-06 12:32:06 +0200 (Tue, 06 Apr 2010)
New Revision: 347

Modified:
   trunk/formed/formed/io/document.py
Log:
* formed/formed/io/document.py (_toXML): Added comment with
	"$Revision"-tag. This tag will/can then be substituted by the VCS.


Modified: trunk/formed/formed/io/document.py
===================================================================
--- trunk/formed/formed/io/document.py	2010-04-06 07:07:02 UTC (rev 346)
+++ trunk/formed/formed/io/document.py	2010-04-06 10:32:06 UTC (rev 347)
@@ -119,7 +119,8 @@
         tagName = classesToTagNames.get(nc.__class__, "leaf")
         return u"%s<%s%s/>" % (indent, tagName, _attributesToXML(nc))
     if isinstance(nc, Document):
-        out = [ u'<?xml version="1.0" encoding="UTF-8"?>\n' ]
+        out = [ u'<!-- $Revision$  -->\n', 
+                u'<?xml version="1.0" encoding="UTF-8"?>\n' ]
         out.append(_toXML(nc.root))
         return "".join(out)
     return ""



More information about the Formed-commits mailing list