summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOlli Salli <ollisal@gmail.com>2011-08-01 22:49:25 +0300
committerOlli Salli <ollisal@gmail.com>2011-08-01 22:49:25 +0300
commitba81f24931ddd2ae483c0cd09c1cbf7658709c65 (patch)
tree92d03f12555c8a187cf09b35c61180913076ad4d /tools
parent4944978e8c7b624bac0ef582efd5f23862afed55 (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 'tools')
-rw-r--r--tools/libqt4codegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libqt4codegen.py b/tools/libqt4codegen.py
index cba918ed..481a1447 100644
--- a/tools/libqt4codegen.py
+++ b/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())