mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Section titles are now allowed inside `only
` directives.
This commit is contained in:
parent
30a1c6b7d9
commit
640fc0ac49
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
Release 0.6.3 (in development)
|
||||
==============================
|
||||
|
||||
* Section titles are now allowed inside ``only`` directives.
|
||||
|
||||
* #201: Make ``centered`` directive work in LaTeX output.
|
||||
|
||||
* #206: Refuse to overwrite an existing master document in
|
||||
|
@ -552,7 +552,8 @@ class Only(Directive):
|
||||
node.document = self.state.document
|
||||
node.line = self.lineno
|
||||
node['expr'] = self.arguments[0]
|
||||
self.state.nested_parse(self.content, self.content_offset, node)
|
||||
self.state.nested_parse(self.content, self.content_offset, node,
|
||||
match_titles=1)
|
||||
return [node]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user