diff options
author | Georg Brandl <georg@python.org> | 2014-09-17 13:37:05 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-17 13:37:05 +0200 |
commit | ae5618e56edafcd859df7c20a424f93ecfb50180 (patch) | |
tree | c424361ee2e21c6e862a17d1d214c7a6832f2310 | |
parent | ddc69ada2f9f2203fdaca8c5ad5b61e8c0fa22e4 (diff) | |
download | sphinx-ae5618e56edafcd859df7c20a424f93ecfb50180.tar.gz |
Closes #1568: since "centered" directly contains text children, it should be a TextElement.
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | sphinx/addnodes.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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) diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py index 365efa79..2806a059 100644 --- a/sphinx/addnodes.py +++ b/sphinx/addnodes.py @@ -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): |