summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-05-27 18:58:58 (GMT)
committerGitHub <noreply@github.com>2020-05-27 18:58:58 (GMT)
commit08c400ccc3eabae63f030b0c05c5f4b4762e3ad3 (patch)
treec312c8b10cd1b3984e7faee5a7ebade7acdf88e3 /src
parent9889a3ca7c71ee206961d28f504ae57ec91bc624 (diff)
parent5870db1f2848ff551007a0feff0b25e1029f7eb6 (diff)
downloadDoxygen-08c400ccc3eabae63f030b0c05c5f4b4762e3ad3.zip
Doxygen-08c400ccc3eabae63f030b0c05c5f4b4762e3ad3.tar.gz
Doxygen-08c400ccc3eabae63f030b0c05c5f4b4762e3ad3.tar.bz2
Merge pull request #7806 from albert-github/feature/bug_py_mult
Warning in case of multiple python documentation sections.
Diffstat (limited to 'src')
-rw-r--r--src/pyscanner.l4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l
index f2a315c..ed76c75 100644
--- a/src/pyscanner.l
+++ b/src/pyscanner.l
@@ -1618,6 +1618,10 @@ static void handleCommentBlock(yyscan_t yyscanner,const QCString &doc,bool brief
// TODO: Fix me
yyextra->docBlockInBody=FALSE;
+ if (!yyextra->current->doc.isEmpty())
+ {
+ yyextra->current->doc=yyextra->current->doc.stripWhiteSpace()+"\n\n";
+ }
if (yyextra->docBlockInBody && yyextra->previous && !yyextra->previous->doc.isEmpty())
{
yyextra->previous->doc=yyextra->previous->doc.stripWhiteSpace()+"\n\n";