summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-10-17 16:42:36 (GMT)
committerGitHub <noreply@github.com>2019-10-17 16:42:36 (GMT)
commitd0d748aee7fdd0469479d7feff16f337322a2175 (patch)
tree0d5688b722236b998c3a44ccf995cdbe46fda94e
parent718238418f53c206f045f69ed51e9a78d42734b0 (diff)
parent1734f1a16f828013171bb67bb4dcb61be57fad04 (diff)
downloadDoxygen-d0d748aee7fdd0469479d7feff16f337322a2175.zip
Doxygen-d0d748aee7fdd0469479d7feff16f337322a2175.tar.gz
Doxygen-d0d748aee7fdd0469479d7feff16f337322a2175.tar.bz2
Merge pull request #7327 from albert-github/feature/bug_a_id
Support for <a id="label">
-rw-r--r--doc/htmlcmds.doc2
-rw-r--r--src/docparser.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/htmlcmds.doc b/doc/htmlcmds.doc
index 12347ab..605bf5a 100644
--- a/doc/htmlcmds.doc
+++ b/doc/htmlcmds.doc
@@ -25,6 +25,8 @@ of a HTML tag are passed on to the HTML output only
<ul>
<li><tt>\<A HREF="..."\></tt> Starts a hyperlink
(if supported by the output format).
+<li><tt>\<A ID="..."\></tt> Starts a named anchor
+ (if supported by the output format).
<li><tt>\<A NAME="..."\></tt> Starts a named anchor
(if supported by the output format).
<li><tt>\</A\></tt> Ends a link or anchor
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 5253b04..f655475 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -966,7 +966,7 @@ static int handleAHref(DocNode *parent,QList<DocNode> &children,const HtmlAttrib
int retval = RetVal_OK;
for (li.toFirst();(opt=li.current());++li,++index)
{
- if (opt->name=="name") // <a name=label> tag
+ if (opt->name=="name" || opt->name=="id") // <a name=label> or <a id=label> tag
{
if (!opt->value.isEmpty())
{