#487: Fix setting the default role to one provided by the `oldcmarkup` extension.

This commit is contained in:
Georg Brandl 2010-08-05 12:03:45 +02:00
parent 29547f7981
commit eedef65aa6
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,9 @@
Release 1.0.2 (in development)
==============================
* #487: Fix setting the default role to one provided by the
``oldcmarkup`` extension.
* #488: Fix crash when json-py is installed, which provides a
``json`` module but is incompatible to simplejson.

View File

@ -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