Fix generated Python code for Doxygen comments ending with quote

Single-line Doxygen comments ending with a double quote resulted in
syntactically-invalid Python docstrings in the output, so use triple
single quotes as delimiters in this case to avoid it.
This commit is contained in:
Vadim Zeitlin 2020-03-03 15:39:37 +01:00
commit b81cd1bdab
4 changed files with 25 additions and 3 deletions

View file

@ -185,6 +185,8 @@ public class doxygen_misc_constructs_runme {
"\n" +
" @param fileName name of the log file\n");
wantedComments.put("doxygen_misc_constructs.doxygen_misc_constructs.doc_ends_with_quote()",
"This doc comment ends with a quote: \"and that's ok\"");
// and ask the parser to check comments for us
System.exit(CommentParser.check(wantedComments));