diff options
| author | Georg Brandl <georg@python.org> | 2007-08-02 12:25:10 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2007-08-02 12:25:10 +0000 |
| commit | 51c1deef44f4dcb02ec85fd067aa2725f282ac9b (patch) | |
| tree | 2b482704682d05c0c7dc1a605b8051fa13209b2a /sphinx/roles.py | |
| parent | 26ec9e5e8f7f54be54940cb5daf72ce2128531c0 (diff) | |
| download | sphinx-git-51c1deef44f4dcb02ec85fd067aa2725f282ac9b.tar.gz | |
Don't interpret markup in productionlists.
Diffstat (limited to 'sphinx/roles.py')
| -rw-r--r-- | sphinx/roles.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sphinx/roles.py b/sphinx/roles.py index 758d2befd..fc6b1a5ba 100644 --- a/sphinx/roles.py +++ b/sphinx/roles.py @@ -95,9 +95,6 @@ innernodetypes = { def xfileref_role(typ, rawtext, text, lineno, inliner, options={}, content=[]): env = inliner.document.settings.env text = utils.unescape(text) - # 'token' is the default role inside 'productionlist' directives - if typ == '': - typ = 'token' if typ in ('func', 'meth', 'cfunc') and \ env.config.get('add_function_parentheses', True): text += '()' |
