summaryrefslogtreecommitdiff
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
commitbb81e6c194547874e37304681e0b44b85ee77127 (patch)
tree727d8d54e8d5c327e93c0e5f1cc2eb6b5b9e8461
parentee03207cf174aa982d5cd706400b9d2da3b84020 (diff)
downloadpygments-git-1.5.tar.gz
Fix doc build with underscores in filename patterns.1.5
-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__