Skip to content

Commit 58bc7c4

Browse files
committed
issue #9221 Tag File - option to Strip path
Use the stripPath so not the full path is shown
1 parent 91095fb commit 58bc7c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dirdef.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ void DirDefImpl::writeTagFile(TextStream &tagFile)
472472
{
473473
tagFile << " <compound kind=\"dir\">\n";
474474
tagFile << " <name>" << convertToXML(displayName()) << "</name>\n";
475-
tagFile << " <path>" << convertToXML(name()) << "</path>\n";
475+
tagFile << " <path>" << convertToXML(stripFromPath(name())) << "</path>\n";
476476
tagFile << " <filename>" << addHtmlExtensionIfMissing(getOutputFileBase()) << "</filename>\n";
477477
for (const auto &lde : LayoutDocManager::instance().docEntries(LayoutDocManager::Directory))
478478
{

src/filedef.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void FileDefImpl::writeTagFile(TextStream &tagFile)
317317
{
318318
tagFile << " <compound kind=\"file\">\n";
319319
tagFile << " <name>" << convertToXML(name()) << "</name>\n";
320-
tagFile << " <path>" << convertToXML(getPath()) << "</path>\n";
320+
tagFile << " <path>" << convertToXML(stripFromPath(getPath())) << "</path>\n";
321321
tagFile << " <filename>" << addHtmlExtensionIfMissing(getOutputFileBase()) << "</filename>\n";
322322
for (const auto &ii : m_includeList)
323323
{

0 commit comments

Comments
 (0)