summaryrefslogtreecommitdiff
path: root/sphinx/ext/ifconfig.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-04-07 19:29:52 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-04-07 19:29:52 +0900
commitdf05d9254d8098534de4db25e9f6de02c78fff2c (patch)
treee170986fe398afc42261695c05ecf85a3ed533a3 /sphinx/ext/ifconfig.py
parentd501bc136ce5069e97a5f347dbc694717dddced8 (diff)
parent70ed093b8b45d19beec391def65125a69cb04518 (diff)
downloadsphinx-git-df05d9254d8098534de4db25e9f6de02c78fff2c.tar.gz
Merge branch '2.0'
Diffstat (limited to 'sphinx/ext/ifconfig.py')
-rw-r--r--sphinx/ext/ifconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/ifconfig.py b/sphinx/ext/ifconfig.py
index bad5953d3..1768acf18 100644
--- a/sphinx/ext/ifconfig.py
+++ b/sphinx/ext/ifconfig.py
@@ -23,6 +23,7 @@ from docutils import nodes
import sphinx
from sphinx.util.docutils import SphinxDirective
+from sphinx.util.nodes import nested_parse_with_titles
if False:
# For type annotation
@@ -48,8 +49,7 @@ class IfConfig(SphinxDirective):
node.document = self.state.document
self.set_source_info(node)
node['expr'] = self.arguments[0]
- self.state.nested_parse(self.content, self.content_offset,
- node, match_titles=True)
+ nested_parse_with_titles(self.state, self.content, node)
return [node]