diff options
author | Olli Salli <ollisal@gmail.com> | 2011-08-01 22:49:25 +0300 |
---|---|---|
committer | Olli Salli <ollisal@gmail.com> | 2011-08-01 22:49:25 +0300 |
commit | 215e3c2e1742210e9e06ba54b2402ac929376379 (patch) | |
tree | e26f9e8a175417f129a4417b3693d6ba7362900c /qt4/tools | |
parent | e16595721369174b0077b4d7a066db17790aab90 (diff) |
Surround XHTML docstrings with \htmlonly \endhtmlonly
This allows more complex HTML to be not mutilated by Doxygen. In particular the rationale divs
generated by the next commit.
Diffstat (limited to 'qt4/tools')
-rw-r--r-- | qt4/tools/libqt4codegen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt4/tools/libqt4codegen.py b/qt4/tools/libqt4codegen.py index cba918eda..481a14474 100644 --- a/qt4/tools/libqt4codegen.py +++ b/qt4/tools/libqt4codegen.py @@ -192,7 +192,7 @@ def format_docstring(el, indent=' * ', brackets=None, maxwidth=80): splitted = ''.join([el.toxml() for el in docstring_el.childNodes]).strip(' ').strip('\n').split('\n') level = min([not match and maxint or match.end() - 1 for match in [re.match('^ *[^ ]', line) for line in splitted]]) assert level != maxint - lines = [line[level:].replace('\\', '\\\\') for line in splitted] + lines = ['\htmlonly'] + [line[level:].replace('\\', '\\\\') for line in splitted] + ['\endhtmlonly'] else: content = xml_escape(get_descendant_text(docstring_el).replace('\n', ' ').strip()) |