summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-10-28 14:44:26 (GMT)
committerGitHub <noreply@github.com>2018-10-28 14:44:26 (GMT)
commitfaaf508736a2daac4b8a0d5c2b4bb2a4638078f4 (patch)
tree1a519e346bd9b030b3c423b7058cdc633331b0d1 /src/docparser.cpp
parent9fe4f44dc1213b057794373b592f3c7be3321937 (diff)
parente2306e7ff24e72d49893eb9ebc568b468298e236 (diff)
downloadDoxygen-faaf508736a2daac4b8a0d5c2b4bb2a4638078f4.zip
Doxygen-faaf508736a2daac4b8a0d5c2b4bb2a4638078f4.tar.gz
Doxygen-faaf508736a2daac4b8a0d5c2b4bb2a4638078f4.tar.bz2
Merge pull request #6438 from albert-github/feature/bug_cite
Correcting labels for citations
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index bf9558f..f01b509 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -1910,11 +1910,8 @@ DocAnchor::DocAnchor(DocNode *parent,const QCString &id,bool newAnchor)
{
warn_doc_error(g_fileName,doctokenizerYYlineno,"Empty anchor label");
}
- if (newAnchor) // found <a name="label">
- {
- m_anchor = id;
- }
- else if (id.left(CiteConsts::anchorPrefix.length()) == CiteConsts::anchorPrefix)
+
+ if (id.left(CiteConsts::anchorPrefix.length()) == CiteConsts::anchorPrefix)
{
CiteInfo *cite = Doxygen::citeDict->find(id.mid(CiteConsts::anchorPrefix.length()));
if (cite)
@@ -1929,6 +1926,10 @@ DocAnchor::DocAnchor(DocNode *parent,const QCString &id,bool newAnchor)
m_file = "invalid";
}
}
+ else if (newAnchor) // found <a name="label">
+ {
+ m_anchor = id;
+ }
else // found \anchor label
{
SectionInfo *sec = Doxygen::sectionDict->find(id);