Phoenix docs: avoid Sphinx warnings if a short description of a class/method ends with the ":" character.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Andrea Gavana
2014-02-09 13:43:25 +00:00
parent 299b2925cf
commit d35a897edb

View File

@@ -549,6 +549,10 @@ def MakeSummary(class_name, item_list, template, kind, add_tilde=True):
if '===' in new_docs:
new_docs = ''
elif new_docs.rstrip().endswith(':'):
# Avoid Sphinx warnings
new_docs = new_docs.rstrip(':')
summary += format%(substr, new_docs) + '\n'