From e04cab6d114a6e8f8018f625197328f3d69f37f9 Mon Sep 17 00:00:00 2001 From: Andrea Gavana Date: Sun, 9 Feb 2014 12:56:02 +0000 Subject: [PATCH] Phoenix docs: avoid Sphinx errors while making the class index for a package (see previous errors on wxGrid). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- sphinxtools/postprocess.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sphinxtools/postprocess.py b/sphinxtools/postprocess.py index 724b4f05..ef32f7d5 100644 --- a/sphinxtools/postprocess.py +++ b/sphinxtools/postprocess.py @@ -452,7 +452,10 @@ def MakeClassIndex(sphinxDir, file): text += 80*'=' + ' ' + 80*'=' + '\n' for cls in names: - text += '%-80s %s\n'%(':ref:`%s`'%Wx2Sphinx(cls)[1], classes[cls]) + out = classes[cls] + if '=====' in out: + out = '' + text += '%-80s %s\n'%(':ref:`%s`'%Wx2Sphinx(cls)[1], out) text += 80*'=' + ' ' + 80*'=' + '\n\n'