gobject-introspection r1016 - branches/annotation/giscanner



Author: johan
Date: Mon Jan 12 13:50:00 2009
New Revision: 1016
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=1016&view=rev

Log:
Allow gtk-doc comments with trailing whitespace after :

Modified:
   branches/annotation/giscanner/annotationparser.py

Modified: branches/annotation/giscanner/annotationparser.py
==============================================================================
--- branches/annotation/giscanner/annotationparser.py	(original)
+++ branches/annotation/giscanner/annotationparser.py	Mon Jan 12 13:50:00 2009
@@ -119,8 +119,11 @@
         comment = comment[len(_COMMENT_HEADER):]
         pos = comment.index('\n ')
 
-        block = DocBlock(comment[:pos-1])
-
+        block_name = comment[:pos]
+        block_name = block_name.strip()
+        if not block_name.endswith(':'):
+            return
+        block = DocBlock(block_name[:-1])
         content = comment[pos+1:]
         for line in content.split('\n'):
             line = line[2:].strip() # Skip ' *'



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