summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-17 13:37:05 +0200
committerGeorg Brandl <georg@python.org>2014-09-17 13:37:05 +0200
commitae5618e56edafcd859df7c20a424f93ecfb50180 (patch)
treec424361ee2e21c6e862a17d1d214c7a6832f2310
parentddc69ada2f9f2203fdaca8c5ad5b61e8c0fa22e4 (diff)
downloadsphinx-ae5618e56edafcd859df7c20a424f93ecfb50180.tar.gz
Closes #1568: since "centered" directly contains text children, it should be a TextElement.
-rw-r--r--CHANGES1
-rw-r--r--sphinx/addnodes.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 0e3f4c80..a0aa269d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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):