commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r10063 - trunk/gnue-common/src/definitions


From: reinhard
Subject: [gnue] r10063 - trunk/gnue-common/src/definitions
Date: Thu, 26 Nov 2009 05:48:36 -0600 (CST)

Author: reinhard
Date: 2009-11-26 05:48:36 -0600 (Thu, 26 Nov 2009)
New Revision: 10063

Modified:
   trunk/gnue-common/src/definitions/GParser.py
Log:
Fix for comments at the end of the file.


Modified: trunk/gnue-common/src/definitions/GParser.py
===================================================================
--- trunk/gnue-common/src/definitions/GParser.py        2009-11-26 11:19:02 UTC 
(rev 10062)
+++ trunk/gnue-common/src/definitions/GParser.py        2009-11-26 11:48:36 UTC 
(rev 10063)
@@ -648,10 +648,10 @@
 
   def comment (self, text):
 
-    if self.root is None:
+    if self.root is None or len(self.xmlStack) == 0:
       self._rootComments.append (text)
     else:
-      if self.xmlStack [0] != None:
+      if self.xmlStack [0] is not None:
         GComment (self.xmlStack [0], text)
 
   # ---------------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]