From f89798b18c902b50770dece4f7d2ec8cc249b9bd Mon Sep 17 00:00:00 2001 From: Seth Ladd Date: Sun, 22 Feb 2015 14:39:54 -0500 Subject: [PATCH] wrap long lists of parameters --- templates/new/class.html | 8 ++++++-- templates/new/library.html | 8 ++++++-- templates/new/styles.css | 10 ++++++++++ test/fake_package/lib/fake.dart | 4 ++++ 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/templates/new/class.html b/templates/new/class.html index cec9671bbe..d38f033325 100644 --- a/templates/new/class.html +++ b/templates/new/class.html @@ -181,7 +181,9 @@

Static Methods

{{{ linkedReturnType }}} - {{ name }}({{{ linkedParams }}) + + {{ name }}({{{ linkedParams }}) +
@@ -200,7 +202,9 @@

Instance Methods

{{{ linkedReturnType }}} - {{ name }}({{{ linkedParams }}) + + {{ name }}({{{ linkedParams }}) +
diff --git a/templates/new/library.html b/templates/new/library.html index e9e41e36f0..f206739272 100644 --- a/templates/new/library.html +++ b/templates/new/library.html @@ -114,7 +114,9 @@

Functions

{{{ linkedReturnType }}} - {{ name }}({{{ linkedParams }}) + + {{ name }}({{{ linkedParams }}) +
@@ -132,7 +134,9 @@

Typedefs

{{{ linkedReturnType }}} - {{ name }}({{{ linkedParams }}) + + {{ name }}({{{ linkedParams }}) +
diff --git a/templates/new/styles.css b/templates/new/styles.css index 937156f57c..735e7a3942 100644 --- a/templates/new/styles.css +++ b/templates/new/styles.css @@ -80,6 +80,11 @@ dl.withreturntypes .returntype { color: gray; } +dl.withreturntypes span.name-and-params { + display: block; + margin-left: 250px; +} + dl.withreturntypes dd { margin-left: 250px; color: gray; @@ -96,6 +101,11 @@ dl.withreturntypes dd { float: none; width: auto; } + + dl.withreturntypes span.name-and-params { + display: inline; + margin:0; + } } dl.dl-horizontal dt { diff --git a/test/fake_package/lib/fake.dart b/test/fake_package/lib/fake.dart index ee9e6015ec..93cf4b816e 100644 --- a/test/fake_package/lib/fake.dart +++ b/test/fake_package/lib/fake.dart @@ -48,6 +48,10 @@ typedef String FakeProcesses(String input); /// A typedef with a type parameter. typedef T GenericTypedef(T input); +/// Lots and lots of parameters. +typedef int LotsAndLotsOfParameters(so,many,parameters,it,should,wrap,when, + converted,to,html,documentation); + /// This class is cool! class Cool {