From 12a92322cd7320fb38d9d15a61b24463d8ffa11f Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Fri, 22 Feb 2019 18:45:42 +0100 Subject: erl_docgen: Indent c-function line continuations --- lib/erl_docgen/priv/css/otp_doc.css | 10 ++++++++-- lib/erl_docgen/priv/xsl/db_html.xsl | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/erl_docgen/priv/css/otp_doc.css b/lib/erl_docgen/priv/css/otp_doc.css index 89b278215c..17d9f8dd56 100644 --- a/lib/erl_docgen/priv/css/otp_doc.css +++ b/lib/erl_docgen/priv/css/otp_doc.css @@ -74,7 +74,7 @@ a:visited { color: #1b6ec2; text-decoration: none } /* Invisible table for function specs, * just to get since-version out in right margin */ -.func-table, .func-tr, .func-td, .func-since-td { +.func-table, .func-tr, .func-td, .cfunc-td, .func-since-td { width: 200%; border: 0; padding: 0; @@ -86,7 +86,13 @@ a:visited { color: #1b6ec2; text-decoration: none } } .func-td { - width: 50% + width: 50%; +} + +.cfunc-td { + width: 50%; + padding-left: 100px; + text-indent: -100px; } .func-since-td { diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl index c5150d447c..4651ec9aaa 100644 --- a/lib/erl_docgen/priv/xsl/db_html.xsl +++ b/lib/erl_docgen/priv/xsl/db_html.xsl @@ -2119,7 +2119,7 @@ - @@ -2199,18 +2192,6 @@ - - - - - - - - - - - @@ -2264,7 +2245,7 @@ - + @@ -2274,7 +2255,16 @@ - + + + + + + + + + + @@ -2704,4 +2694,46 @@ + + + + + + + + + + + ( + + + + + + +
+ + + +
+
+
+ + + + + + + + ,
+ + + +
+ + + +
+
+ -- cgit v1.2.3
+ -- cgit v1.2.3 From c33e37f575549317aebd7c3db7e02d6b78d5fba4 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Tue, 26 Feb 2019 15:06:41 +0100 Subject: erl_docgen: Prettify c-function argument lists with line breaks before each argument. Q: Why the 'APPLY' hack to "title_link"? A: I found no way to make a
survive when passed through . --- lib/erl_docgen/priv/xsl/db_html.xsl | 74 ++++++++++++++++++++++++++----------- 1 file changed, 53 insertions(+), 21 deletions(-) (limited to 'lib') diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl index 4651ec9aaa..c9be926e1e 100644 --- a/lib/erl_docgen/priv/xsl/db_html.xsl +++ b/lib/erl_docgen/priv/xsl/db_html.xsl @@ -2123,13 +2123,6 @@ - - - - - - -