diff options
Diffstat (limited to 'docs/doxygen/doxyxml/text.py')
-rw-r--r-- | docs/doxygen/doxyxml/text.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/doxygen/doxyxml/text.py b/docs/doxygen/doxyxml/text.py index dc3d390a7d..36d678e5c1 100644 --- a/docs/doxygen/doxyxml/text.py +++ b/docs/doxygen/doxyxml/text.py @@ -10,6 +10,7 @@ Utilities for extracting text from generated classes. """ + def is_string(txt): if isinstance(txt, str): return True @@ -20,11 +21,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] @@ -37,7 +40,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" |