summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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())
{