Closes #1568: since "centered" directly contains text children, it should be a TextElement.

This commit is contained in:
Georg Brandl 2014-09-17 13:37:05 +02:00
parent 439018a4e6
commit d2b955b7f9
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ Bugs fixed
* #1563: :meth:`~sphinx.application.Sphinx.add_search_language` raises
AssertionError for correct type of argument. Thanks to rikoman.
* #1568: fix a crash when a "centered" directive contains a reference.
Release 1.2.3 (released Sep 1, 2014)

View File

@ -107,7 +107,7 @@ class index(nodes.Invisible, nodes.Inline, nodes.TextElement):
*entrytype* is one of "single", "pair", "double", "triple".
"""
class centered(nodes.Part, nodes.Element):
class centered(nodes.Part, nodes.TextElement):
"""Deprecated."""
class acks(nodes.Element):