diff options
author | albert-github <albert.tests@gmail.com> | 2019-10-16 13:54:33 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-10-16 13:54:33 (GMT) |
commit | 1734f1a16f828013171bb67bb4dcb61be57fad04 (patch) | |
tree | e50506a1f0cb06e95d61f61e8e7fb7270b33819d | |
parent | 560bd4f390b6f5ed3146ddd3def583bd074c35b9 (diff) | |
download | Doxygen-1734f1a16f828013171bb67bb4dcb61be57fad04.zip Doxygen-1734f1a16f828013171bb67bb4dcb61be57fad04.tar.gz Doxygen-1734f1a16f828013171bb67bb4dcb61be57fad04.tar.bz2 |
Support for <a id="label">
Support besides `<a name="label">` also `<a id="label">` as `id=` is the HTML attribute to define an ad for an HTML element.
-rw-r--r-- | doc/htmlcmds.doc | 2 | ||||
-rw-r--r-- | src/docparser.cpp | 2 |
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()) { |