From 36ac0ef72404e15109e0ceba9d6588930415f239 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 8 May 2021 14:24:01 +0200 Subject: Missing page when followed by mainpage When we have in one file a `\page` followed by a `\mainpage` than this page is not shown / completely ignore, an example: ``` @page pg_tst_1 Test 1 the 1 page @mainpage Test MainPage the mainpage ``` this problem is due to the fact that `handleMainPage` is called when a `\mainpage` command is found, and this is also the case at the end of the content of `\page` resulting in the fact that the name of this page is removed (and thus actually the complete page). --- src/commentscan.l | 1 - 1 file changed, 1 deletion(-) diff --git a/src/commentscan.l b/src/commentscan.l index adf7e1b..23a0471 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -2120,7 +2120,6 @@ static bool handleMainpage(yyscan_t yyscanner,const QCString &, const StringVect { struct yyguts_t *yyg = (struct yyguts_t*)yyscanner; bool stop=makeStructuralIndicator(yyscanner,Entry::MAINPAGEDOC_SEC); - yyextra->current->name = ""; if (!stop) { yyextra->current->name = "mainpage"; -- cgit v0.12