From f8ed9d71a76db33dfd341e7749bbe958dfd276ec Mon Sep 17 00:00:00 2001 From: John McFarland Date: Sat, 24 Aug 2019 12:34:41 -0500 Subject: [PATCH] Fix doxygen translation of \p command for python Doxygen writes this using typewriter font, so wrap in `` for python --- Examples/test-suite/python/doxygen_translate_all_tags_runme.py | 2 +- Examples/test-suite/python/doxygen_translate_runme.py | 2 +- Source/Doxygen/pydoc.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Examples/test-suite/python/doxygen_translate_all_tags_runme.py b/Examples/test-suite/python/doxygen_translate_all_tags_runme.py index 34a3f7e48..2b5b3b810 100644 --- a/Examples/test-suite/python/doxygen_translate_all_tags_runme.py +++ b/Examples/test-suite/python/doxygen_translate_all_tags_runme.py @@ -196,7 +196,7 @@ is the note! This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. -someword +``someword`` diff --git a/Examples/test-suite/python/doxygen_translate_runme.py b/Examples/test-suite/python/doxygen_translate_runme.py index d698ba873..38dca2ef9 100644 --- a/Examples/test-suite/python/doxygen_translate_runme.py +++ b/Examples/test-suite/python/doxygen_translate_runme.py @@ -80,7 +80,7 @@ is the note! This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. -someword +``someword`` diff --git a/Source/Doxygen/pydoc.cxx b/Source/Doxygen/pydoc.cxx index f9d833b5e..f2031f481 100644 --- a/Source/Doxygen/pydoc.cxx +++ b/Source/Doxygen/pydoc.cxx @@ -270,7 +270,7 @@ void PyDocConverter::fillStaticTables() { tagHandlers["link"] = make_handler(&PyDocConverter::handleParagraph); tagHandlers["manonly"] = make_handler(&PyDocConverter::handleParagraph); tagHandlers["note"] = make_handler(&PyDocConverter::handleParagraph); - tagHandlers["p"] = make_handler(&PyDocConverter::handleParagraph); + tagHandlers["p"] = make_handler(&PyDocConverter::handleTagWrap, "``"); tagHandlers["partofdescription"] = make_handler(&PyDocConverter::handleParagraph); tagHandlers["rtfonly"] = make_handler(&PyDocConverter::handleParagraph); tagHandlers["remark"] = make_handler(&PyDocConverter::handleParagraph);