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
This commit is contained in:
Andrea Gavana
2014-02-09 12:56:02 +00:00
parent 69544082bd
commit e04cab6d11

View File

@@ -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'