diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-08-05 07:29:44 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-08-05 07:29:44 (GMT) |
commit | c75c38455453c63b82abe2e4b6b1f8842a84f9d9 (patch) | |
tree | 5ebcaa627686f2761401b80e3c9a36799774f8ca /src | |
parent | 041215111a345199fcb52a26941e76c613a0b552 (diff) | |
parent | 8f7394212564e1c466636d737fcb7abec5fdbfe6 (diff) | |
download | Doxygen-c75c38455453c63b82abe2e4b6b1f8842a84f9d9.zip Doxygen-c75c38455453c63b82abe2e4b6b1f8842a84f9d9.tar.gz Doxygen-c75c38455453c63b82abe2e4b6b1f8842a84f9d9.tar.bz2 |
Merge branch 'feature/bug_py_empty_comment' of https://github.com/albert-github/doxygen into albert-github-feature/bug_py_empty_comment
Diffstat (limited to 'src')
-rw-r--r-- | src/pyscanner.l | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l index 773391b..701381b 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -1253,9 +1253,12 @@ STARTDOCSYMS "##" QCString actualDoc=yyextra->docBlock; if (!yyextra->docBlockSpecial) // legacy unformatted docstring { - stripIndentation(actualDoc,yyextra->commentIndent); - actualDoc.prepend("\\verbatim\n"); - actualDoc.append("\\endverbatim "); + if (!actualDoc.isEmpty()) + { + stripIndentation(actualDoc,yyextra->commentIndent); + actualDoc.prepend("\\verbatim\n"); + actualDoc.append("\\endverbatim "); + } } //printf("-------> yyextra->current=%p yyextra->bodyEntry=%p\n",yyextra->current,yyextra->bodyEntry); handleCommentBlock(yyscanner, actualDoc, FALSE); @@ -1265,9 +1268,12 @@ STARTDOCSYMS "##" QCString actualDoc=yyextra->docBlock; if (!yyextra->docBlockSpecial) // legacy unformatted docstring { - stripIndentation(actualDoc,yyextra->commentIndent); - actualDoc.prepend("\\verbatim\n"); - actualDoc.append("\\endverbatim "); + if (!actualDoc.isEmpty()) + { + stripIndentation(actualDoc,yyextra->commentIndent); + actualDoc.prepend("\\verbatim\n"); + actualDoc.append("\\endverbatim "); + } } actualDoc.prepend("\\namespace "+yyextra->moduleScope+" "); handleCommentBlock(yyscanner, actualDoc, FALSE); |