aboutsummaryrefslogtreecommitdiffstats
path: root/doc/user-guide/genhelp.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/user-guide/genhelp.py')
-rw-r--r--doc/user-guide/genhelp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/user-guide/genhelp.py b/doc/user-guide/genhelp.py
index ec619344..e9a3b2bf 100644
--- a/doc/user-guide/genhelp.py
+++ b/doc/user-guide/genhelp.py
@@ -64,7 +64,8 @@ def fix_tree(tag, debug=False, lvl=''):
print("%s</%s>%r" % (lvl, tag.tag, [tag.tail, normalize(tag.tail)]))
# Actually normalize whitespace
- tag.text = normalize(tag.text)
+ if 'pre' not in tag.attrib:
+ tag.text = normalize(tag.text)
tag.tail = normalize(tag.tail)