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) # --------------------------------------------------------------------------- _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue