From fb5bed5e5021841f67450f5ab911c13f184d0dbc Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Mon, 23 Oct 2017 15:49:54 +0200 Subject: erl_docgen: Insert an anchor for "anchor" attribute Certain functions, particularly in erlang(3), have specs with many clauses, some of which are documented separately. No anchors were inserted automatically for clauses (as is the case for functions), why manually written anchors had to be added to the XML files. However, these anchors had to be placed inside the description, and the links would point into the text, not into the name of the function/clause. The new "anchor" attribute is to be used where manually written anchors have hitherto been used. The "anchor" attribute can also be used without the "clause_i" attribute. --- lib/erl_docgen/priv/dtd/erlref.dtd | 1 + lib/erl_docgen/priv/xsl/db_html.xsl | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/erl_docgen/priv/dtd/erlref.dtd b/lib/erl_docgen/priv/dtd/erlref.dtd index 615b88b61a..78d6771f52 100644 --- a/lib/erl_docgen/priv/dtd/erlref.dtd +++ b/lib/erl_docgen/priv/dtd/erlref.dtd @@ -33,4 +33,5 @@ diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl index 75614392fb..5b7eae4f73 100644 --- a/lib/erl_docgen/priv/xsl/db_html.xsl +++ b/lib/erl_docgen/priv/xsl/db_html.xsl @@ -172,6 +172,7 @@ + @@ -198,6 +199,11 @@ + + + + + -- cgit v1.2.3