diff options
author | Georg Brandl <georg@python.org> | 2010-08-05 12:03:45 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-08-05 12:03:45 +0200 |
commit | eedef65aa6d3673b81ac6fcd6c9b05ec74a2567e (patch) | |
tree | e6b4d38494fadd622a75f9de995d2fdd545d7e25 /sphinx/ext/oldcmarkup.py | |
parent | 29547f798172a34e00fded1da2f9dc0b0f31bc09 (diff) | |
download | sphinx-git-eedef65aa6d3673b81ac6fcd6c9b05ec74a2567e.tar.gz |
#487: Fix setting the default role to one provided by the ``oldcmarkup`` extension.
Diffstat (limited to 'sphinx/ext/oldcmarkup.py')
-rw-r--r-- | sphinx/ext/oldcmarkup.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/ext/oldcmarkup.py b/sphinx/ext/oldcmarkup.py index 84ae61dd2..00ac37495 100644 --- a/sphinx/ext/oldcmarkup.py +++ b/sphinx/ext/oldcmarkup.py @@ -42,6 +42,8 @@ class OldCDirective(Directive): def old_crole(typ, rawtext, text, lineno, inliner, options={}, content=[]): env = inliner.document.settings.env + if not typ: + typ = env.config.default_role if not env.app._oldcmarkup_warned: env.warn(env.docname, WARNING_MSG) env.app._oldcmarkup_warned = True |