doxy: correctly ignore first blank line in comment
authordberzano <dario.berzano@cern.ch>
Tue, 9 Dec 2014 12:32:38 +0000 (13:32 +0100)
committerdberzano <dario.berzano@cern.ch>
Fri, 9 Jan 2015 15:01:07 +0000 (16:01 +0100)
doxygen/thtml2doxy_clang.py

index 0e09f11..78d2171 100755 (executable)
@@ -323,14 +323,16 @@ def refactor_comment(comment):
     if mcomm:
       new_line_comment = mcomm.group(2)
       mgarbage = re.search( regarbage, new_line_comment )
+
       if new_line_comment == '' or mgarbage is not None:
         insert_blank = True
       else:
         if insert_blank and not wait_first_non_blank:
           new_comment.append('')
-          insert_blank = False
+        insert_blank = False
         wait_first_non_blank = False
         new_comment.append( new_line_comment )
+
     else:
       assert False, 'Comment regexp does not match'