File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2367,21 +2367,22 @@ void MarkdownFileParser::parseInput(const char *fileName,
2367
2367
QCString fn = QFileInfo (fileName).fileName ().utf8 ();
2368
2368
static QCString mdfileAsMainPage = Config_getString (" USE_MDFILE_AS_MAINPAGE" );
2369
2369
if (id.isEmpty ()) id = markdownFileNameToId (fileName);
2370
- if (title.isEmpty ()) title = titleFn;
2371
2370
if (!mdfileAsMainPage.isEmpty () &&
2372
2371
(fn==mdfileAsMainPage || // name reference
2373
2372
QFileInfo (fileName).absFilePath ()==
2374
2373
QFileInfo (mdfileAsMainPage).absFilePath ()) // file reference with path
2375
2374
)
2376
2375
{
2377
- docs.prepend (" @mainpage\n " );
2376
+ docs.prepend (" @mainpage " +title+ " \n " );
2378
2377
}
2379
2378
else if (id==" mainpage" || id==" index" )
2380
2379
{
2380
+ if (title.isEmpty ()) title = titleFn;
2381
2381
docs.prepend (" @mainpage " +title+" \n " );
2382
2382
}
2383
2383
else
2384
2384
{
2385
+ if (title.isEmpty ()) title = titleFn;
2385
2386
docs.prepend (" @page " +id+" " +title+" \n " );
2386
2387
}
2387
2388
int lineNr=1 ;
You can’t perform that action at this time.
0 commit comments