doxy2swig.py: remove/explain 'do-nothing' blocks
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
69f7d09103
commit
2980e211db
@@ -121,6 +121,7 @@ class Doxy2SWIG:
|
|||||||
# ignore pure whitespace
|
# ignore pure whitespace
|
||||||
m = self.space_re.match(txt)
|
m = self.space_re.match(txt)
|
||||||
if m and len(m.group()) == len(txt):
|
if m and len(m.group()) == len(txt):
|
||||||
|
# do nothing
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
self.add_text(textwrap.fill(txt, break_long_words=False))
|
self.add_text(textwrap.fill(txt, break_long_words=False))
|
||||||
@@ -347,9 +348,7 @@ class Doxy2SWIG:
|
|||||||
|
|
||||||
def do_simplesect(self, node):
|
def do_simplesect(self, node):
|
||||||
kind = node.attributes['kind'].value
|
kind = node.attributes['kind'].value
|
||||||
if kind in ('date', 'rcs', 'version'):
|
if kind == 'warning':
|
||||||
pass
|
|
||||||
elif kind == 'warning':
|
|
||||||
self.add_text(['\n', 'WARNING: '])
|
self.add_text(['\n', 'WARNING: '])
|
||||||
self.generic_parse(node)
|
self.generic_parse(node)
|
||||||
elif kind == 'see':
|
elif kind == 'see':
|
||||||
|
|||||||
Reference in New Issue
Block a user