]> git.mxchange.org Git - flightgear.git/commitdiff
Ignore empty lines in html output.
authorThorstenB <brehmt@gmail.com>
Sun, 25 Mar 2012 08:34:50 +0000 (10:34 +0200)
committerThorstenB <brehmt@gmail.com>
Sun, 25 Mar 2012 08:34:50 +0000 (10:34 +0200)
scripts/python/nasal_api_doc.py

index 947b722f9fdca02502c1d805ecacbc763d936762..9c27310d13d35e71a6a113d9f47121be6ff017bd 100755 (executable)
@@ -135,7 +135,9 @@ def output_text(top_namespaces,modules,version):
                                if comment.find('=====')!=-1:
                                        buf+='<hr/>'
                                else:
-                                       buf+= '<div class="comments">'+comment.replace('#','').replace('<','&lt;').replace('>','&gt;')+'</div><br/>\n'
+                                       tempComment = comment.replace('#','').replace('<','&lt;').replace('>','&gt;')
+                                       if string.strip(tempComment)!="":
+                                               buf+= '<div class="comments">'+tempComment+'</div><br/>\n'
                        buf+='</div>\n'
                if namespace[0] not in done2:
                        buf+='</div>\n'