From 1d17e7a56a822da4f443912c73fa6016a6934a96 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 18 Jan 2019 14:10:33 +0100 Subject: issue #6679 Multiple use of section label warning for Setex-stype headers in markdown Due to the move of the markdown code to another place the adding of the section info of section, subsection etc. would be attempted to add twice (first in markdown and later on again when translating the resulting '`section`, `\subsection` commands. The adding should only take place when handling the (replaced) commands. Removing the test in `addSection` won't work as in that case using twice a sectioning command with the same label would not be signaled anymore. --- src/markdown.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/markdown.cpp b/src/markdown.cpp index 74492ea..fcad7e9 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -2282,28 +2282,6 @@ static QCString processBlocks(const QCString &s,int indent) out.addStr(" "); out.addStr(header); out.addStr("\n\n"); - SectionInfo *si = Doxygen::sectionDict->find(id); - if (si) - { - if (si->lineNr != -1) - { - warn(g_fileName,g_lineNr,"multiple use of section label '%s', (first occurrence: %s, line %d)",header.data(),si->fileName.data(),si->lineNr); - } - else - { - warn(g_fileName,g_lineNr,"multiple use of section label '%s', (first occurrence: %s)",header.data(),si->fileName.data()); - } - } - else - { - si = new SectionInfo(g_fileName,g_lineNr,id,header, - level==1 ? SectionInfo::Section : SectionInfo::Subsection,level); - if (g_current) - { - g_current->anchors->append(si); - } - Doxygen::sectionDict->append(id,si); - } } else { -- cgit v0.12 From 73ea97de120eaf825b72717b0abe71f28d7838bb Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 21 Jan 2019 19:11:39 +0100 Subject: issue #6791 TOC not generated when using a particular Markdown header style The default for the `TOC_INCLUDE_HEADERINGS` was set to 0, for compatibility this should be 5. (Problem was observed in the doxygen documentation, chapter markdown, where the TOC was missing; alternatively in the Doxyfile the `TOC_INCLUDE_HEADERINGS` could be set to `5`,. The solution chosen is more consistent with the old situation). --- src/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.xml b/src/config.xml index a62040b..8820fe7 100644 --- a/src/config.xml +++ b/src/config.xml @@ -667,7 +667,7 @@ Go to the next section or return to the ]]> -