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(-) 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 From b52d1866987e0b6a5b15ff0cb1289c91d276c884 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Tue, 26 Feb 2019 17:52:06 +0100 Subject: erts: Remove 7-bit ASCII limitation in to_erl Symptom: to_erl garbles anything beyond 7-bit ASCII received on STDIN Solution: Remove setting of ISTRIP flag on input terminal. "man tcsetattr" says: ISTRIP Strip off eighth bit. --- erts/etc/unix/to_erl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/erts/etc/unix/to_erl.c b/erts/etc/unix/to_erl.c index afff8f7e54..ed4fe12e8b 100644 --- a/erts/etc/unix/to_erl.c +++ b/erts/etc/unix/to_erl.c @@ -245,7 +245,6 @@ int main(int argc, char **argv) tty_smode.c_iflag = 1*BRKINT |/*Signal interrupt on break.*/ 1*IGNPAR |/*Ignore characters with parity errors.*/ - 1*ISTRIP |/*Strip character.*/ 0; #if 0 -- 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(-) 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 @@ - - - - - - -