diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-10-28 14:44:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-28 14:44:26 (GMT) |
commit | faaf508736a2daac4b8a0d5c2b4bb2a4638078f4 (patch) | |
tree | 1a519e346bd9b030b3c423b7058cdc633331b0d1 /src | |
parent | 9fe4f44dc1213b057794373b592f3c7be3321937 (diff) | |
parent | e2306e7ff24e72d49893eb9ebc568b468298e236 (diff) | |
download | Doxygen-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')
-rw-r--r-- | src/docparser.cpp | 11 | ||||
-rw-r--r-- | src/xmldocvisitor.cpp | 2 |
2 files changed, 7 insertions, 6 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); diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp index 525dbf5..35e9194 100644 --- a/src/xmldocvisitor.cpp +++ b/src/xmldocvisitor.cpp @@ -494,7 +494,7 @@ void XmlDocVisitor::visitPre(DocPara *) void XmlDocVisitor::visitPost(DocPara *) { if (m_hide) return; - m_t << "</para>"; + m_t << "</para>" << endl; } void XmlDocVisitor::visitPre(DocRoot *) |