mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #2221: graphviz always warns about :inline: option
This commit is contained in:
parent
ed527f86f1
commit
e4480baa98
@ -99,7 +99,8 @@ class Graphviz(Directive):
|
||||
node['options'] = []
|
||||
if 'alt' in self.options:
|
||||
node['alt'] = self.options['alt']
|
||||
node['inline'] = 'inline' in self.options
|
||||
if 'inline' in self.options:
|
||||
node['inline'] = True
|
||||
|
||||
caption = self.options.get('caption')
|
||||
if caption:
|
||||
@ -129,7 +130,8 @@ class GraphvizSimple(Directive):
|
||||
node['options'] = []
|
||||
if 'alt' in self.options:
|
||||
node['alt'] = self.options['alt']
|
||||
node['inline'] = 'inline' in self.options
|
||||
if 'inline' in self.options:
|
||||
node['inline'] = True
|
||||
|
||||
caption = self.options.get('caption')
|
||||
if caption:
|
||||
|
Loading…
Reference in New Issue
Block a user