summaryrefslogtreecommitdiff
path: root/gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py')
-rw-r--r--gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py b/gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py
index 8d8c7b4301..dbc7170ab2 100644
--- a/gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py
+++ b/gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py
@@ -11,6 +11,7 @@
Utilities for extracting text from generated classes.
"""
+
def is_string(txt):
if isinstance(txt, str):
return True
@@ -21,11 +22,13 @@ def is_string(txt):
pass
return False
+
def description(obj):
if obj is None:
return None
return description_bit(obj).strip()
+
def description_bit(obj):
if hasattr(obj, 'content'):
contents = [description_bit(item) for item in obj.content]
@@ -38,7 +41,8 @@ def description_bit(obj):
elif is_string(obj):
return obj
else:
- raise Exception('Expecting a string or something with content, content_ or value attribute')
+ raise Exception(
+ 'Expecting a string or something with content, content_ or value attribute')
# If this bit is a paragraph then add one some line breaks.
if hasattr(obj, 'name') and obj.name == 'para':
result += "\n\n"