doxy: consider comments after last line
authordberzano <dario.berzano@cern.ch>
Thu, 5 Feb 2015 19:12:37 +0000 (20:12 +0100)
committerdberzano <dario.berzano@cern.ch>
Tue, 10 Feb 2015 15:21:13 +0000 (16:21 +0100)
doxygen/thtml2doxy.py

index b894d20..9aa0178 100755 (executable)
@@ -1094,6 +1094,16 @@ def rewrite_comments(fhin, fhout, comments):
       else:
         fhout.write( line_out + '\n' )
 
+  # Is there some comment left here?
+  if restore_lines is not None:
+    dump_comment_block(comm, restore_lines)
+
+  # Is there some other comment beyond the last line?
+  for c in comments:
+    if c.has_comment(line_num+1):
+      dump_comment_block(c, None)
+      break
+
 
 ## The main function.
 #