summaryrefslogtreecommitdiff
path: root/docs/generate.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-03-10 22:10:37 +0100
committerGeorg Brandl <georg@python.org>2012-03-10 22:10:37 +0100
commit8cd55a40d46cbbf636eb426af8db5fe9b7aaf324 (patch)
tree727d8d54e8d5c327e93c0e5f1cc2eb6b5b9e8461 /docs/generate.py
parent85fc9c058f9b4db6211b6c69f33814ac8531890e (diff)
downloadpygments-8cd55a40d46cbbf636eb426af8db5fe9b7aaf324.tar.gz
Fix doc build with underscores in filename patterns.1.5
Diffstat (limited to 'docs/generate.py')
-rwxr-xr-x[-rw-r--r--]docs/generate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/generate.py b/docs/generate.py
index 4842dc6e..0ceeb58d 100644..100755
--- a/docs/generate.py
+++ b/docs/generate.py
@@ -56,7 +56,7 @@ def generate_lexer_docs():
classname,
cls.__doc__,
', '.join(data[2]) or 'None',
- ', '.join(data[3]).replace('*', '\\*') or 'None',
+ ', '.join(data[3]).replace('*', '\\*').replace('_', '\\') or 'None',
', '.join(data[4]) or 'None'))
if module not in moduledocstrings:
moduledocstrings[module] = mod.__doc__