From d35a897edb27ca3bdaed553ce221f6245eb3f5ee Mon Sep 17 00:00:00 2001 From: Andrea Gavana Date: Sun, 9 Feb 2014 13:43:25 +0000 Subject: [PATCH] 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 --- sphinxtools/utilities.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sphinxtools/utilities.py b/sphinxtools/utilities.py index c1a707ea..02331fba 100644 --- a/sphinxtools/utilities.py +++ b/sphinxtools/utilities.py @@ -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'