Skip to content

Commit d53f37c

Browse files
committed
Unclear / double path for file names
Based on #10120 some more path problems were found - HTML in case of `FULL_PATH_NAMES=NO` there was still a path shown - other formats, in the file index it was unclear `FULL_PATH_NAMES=NO` which file was intended
1 parent 8003cc4 commit d53f37c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/filedef.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,14 +816,16 @@ void FileDefImpl::writeDocumentation(OutputList &ol)
816816
getDirDef()->writeNavigationPath(ol);
817817
ol.endQuickIndices();
818818
}
819-
QCString pageTitleShort=theTranslator->trFileReference(name());
820819
startTitle(ol,getOutputFileBase(),this);
821820
ol.pushGeneratorState();
822821
ol.disableAllBut(OutputType::Html);
823-
ol.parseText(pageTitleShort); // Html only
822+
ol.parseText(theTranslator->trFileReference(displayName())); // Html only
824823
ol.enableAll();
825824
ol.disable(OutputType::Html);
826-
ol.parseText(pageTitle); // other output formats
825+
if (Config_getBool(FULL_PATH_NAMES))
826+
ol.parseText(theTranslator->trFileReference(m_docname)); // other output formats
827+
else
828+
ol.parseText(theTranslator->trFileReference(name())); // other output formats
827829
ol.popGeneratorState();
828830
addGroupListToTitle(ol,this);
829831
endTitle(ol,getOutputFileBase(),title);

0 commit comments

Comments
 (0)