From: ThorstenB Date: Sun, 25 Mar 2012 08:34:50 +0000 (+0200) Subject: Ignore empty lines in html output. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=924468169d311387cb8ae9d5f41627996d50fa97;p=flightgear.git Ignore empty lines in html output. --- diff --git a/scripts/python/nasal_api_doc.py b/scripts/python/nasal_api_doc.py index 947b722f9..9c27310d1 100755 --- a/scripts/python/nasal_api_doc.py +++ b/scripts/python/nasal_api_doc.py @@ -135,7 +135,9 @@ def output_text(top_namespaces,modules,version): if comment.find('=====')!=-1: buf+='
' else: - buf+= '
'+comment.replace('#','').replace('<','<').replace('>','>')+'

\n' + tempComment = comment.replace('#','').replace('<','<').replace('>','>') + if string.strip(tempComment)!="": + buf+= '
'+tempComment+'

\n' buf+='\n' if namespace[0] not in done2: buf+='\n'