mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
But maybe this time it works!
This commit is contained in:
parent
30e56ca544
commit
303481bd86
@ -73,7 +73,7 @@ except ImportError:
|
||||
class or function. For that, we need to convert classes to a
|
||||
function for docutils 0.4.
|
||||
"""
|
||||
if isinstance(obj, Directive):
|
||||
if isinstance(obj, type) and issubclass(obj, Directive):
|
||||
def _class_directive(name, arguments, options, content,
|
||||
lineno, content_offset, block_text,
|
||||
state, state_machine):
|
||||
|
Loading…
Reference in New Issue
Block a user