Commits

Georg Brandl committed aec83c0

Section titles are now allowed inside ``only`` directives.

Comments (0)

Files changed (2)

 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

sphinx/directives/other.py

         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]