Skip to content

Commit f152c01

Browse files
authored
Tidy spacing in templates (#3652)
1 parent d0c53b9 commit f152c01

12 files changed

+357
-354
lines changed

lib/src/generator/templates.aot_renderers_for_html.dart

+136-135
Large diffs are not rendered by default.
+12-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
{{#getter}}
2-
<section id="getter">
1+
{{ #getter }}
2+
<section id="getter">
33

4-
<section class="multi-line-signature">
5-
{{ >annotations }}
6-
<span class="returntype">{{{ modelType.returnType.linkedName }}}</span>
7-
{{ >name_summary }}
8-
{{ >attributes }}
9-
</section>
4+
<section class="multi-line-signature">
5+
{{ >annotations }}
6+
<span class="returntype">{{{ modelType.returnType.linkedName }}}</span>
7+
{{ >name_summary }}
8+
{{ >attributes }}
9+
</section>
1010

11-
{{>documentation}}
12-
{{>source_code}}
13-
</section>
14-
{{/getter}}
11+
{{ >documentation }}
12+
{{ >source_code }}
13+
</section>
14+
{{ /getter }}
+12-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
{{#setter}}
2-
<section id="setter">
1+
{{ #setter }}
2+
<section id="setter">
33

4-
<section class="multi-line-signature">
5-
{{ >annotations }}
6-
<span class="returntype">void</span>
7-
{{ >name_summary }}<span class="signature">(<wbr>{{{ linkedParamsNoMetadata }}})</span>
8-
{{ >attributes }}
9-
</section>
4+
<section class="multi-line-signature">
5+
{{ >annotations }}
6+
<span class="returntype">void</span>
7+
{{ >name_summary }}<span class="signature">(<wbr>{{{ linkedParamsNoMetadata }}})</span>
8+
{{ >attributes }}
9+
</section>
1010

11-
{{>documentation}}
12-
{{>source_code}}
13-
</section>
14-
{{/setter}}
11+
{{ >documentation }}
12+
{{ >source_code }}
13+
</section>
14+
{{ /setter }}

lib/templates/html/_callable.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<dt id="{{htmlId}}" class="callable{{ #isInherited }} inherited{{ /isInherited}}">
2-
<span class="name{{#isDeprecated}} deprecated{{/isDeprecated}}">{{{linkedName}}}</span>{{{linkedGenericParameters}}}<span class="signature">(<wbr>{{{ linkedParamsNoMetadata }}})
1+
<dt id="{{ htmlId }}" class="callable{{ #isInherited }} inherited{{ /isInherited}}">
2+
<span class="name{{ #isDeprecated }} deprecated{{ /isDeprecated }}">{{{ linkedName }}}</span>{{{ linkedGenericParameters }}}<span class="signature">(<wbr>{{{ linkedParamsNoMetadata }}})
33
<span class="returntype parameter">&#8594; {{{ modelType.returnType.linkedName }}}</span>
44
</span>
5-
{{>categorization}}
5+
{{ >categorization }}
66
</dt>
7-
<dd{{ #isInherited }} class="inherited"{{ /isInherited}}>
7+
<dd{{ #isInherited }} class="inherited"{{ /isInherited }}>
88
{{{ oneLineDoc }}}
99
{{ >attributes }}
1010
</dd>
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{{ >annotations }}
22

33
<span class="returntype">{{{ modelType.returnType.linkedName }}}</span>
4-
{{>name_summary}}{{{genericParameters}}}(<wbr>{{#hasParameters}}{{{linkedParamsLines}}}{{/hasParameters}})
4+
{{ >name_summary }}{{{ genericParameters }}}(<wbr>{{ #hasParameters }}{{{ linkedParamsLines }}}{{ /hasParameters }})

lib/templates/html/_extension.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<dt id="{{htmlId}}">
2-
<span class="name {{#isDeprecated}}deprecated{{/isDeprecated}}">{{{linkedName}}}</span> {{>categorization}}
1+
<dt id="{{ htmlId }}">
2+
<span class="name {{ #isDeprecated }}deprecated{{ /isDeprecated }}">{{{ linkedName }}}</span> {{ >categorization }}
33
</dt>
44
<dd>
5-
{{{ oneLineDoc }}}
5+
{{{ oneLineDoc }}}
66
</dd>
77

lib/templates/html/_property.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
<dt id="{{htmlId}}" class="property{{ #isInherited }} inherited{{ /isInherited}}">
2-
<span class="name">{{{linkedName}}}</span>
3-
<span class="signature">{{{ arrow }}} {{{ modelType.linkedName }}}</span> {{>categorization}}
1+
<dt id="{{ htmlId }}" class="property{{ #isInherited }} inherited{{ /isInherited}}">
2+
<span class="name">{{{ linkedName }}}</span>
3+
<span class="signature">{{{ arrow }}} {{{ modelType.linkedName }}}</span>
4+
{{ >categorization }}
45
</dt>
5-
<dd{{ #isInherited }} class="inherited"{{ /isInherited}}>
6+
<dd{{ #isInherited }} class="inherited"{{ /isInherited }}>
67
{{{ oneLineDoc }}}
78
{{ >attributes }}
89
</dd>

lib/templates/html/class.html

+38-38
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,77 @@
1-
{{>head}}
1+
{{ >head }}
22

3-
<div
4-
id="dartdoc-main-content"
5-
class="main-content"
6-
data-above-sidebar="{{ aboveSidebarPath }}"
7-
data-below-sidebar="{{ belowSidebarPath }}">
8-
{{#self}}
9-
<div>{{>source_link}}<h1><span class="kind-class">{{{nameWithGenerics}}}</span> {{kind}} {{>feature_set}} {{>categorization}}</h1></div>
10-
{{/self}}
3+
<div
4+
id="dartdoc-main-content"
5+
class="main-content"
6+
data-above-sidebar="{{ aboveSidebarPath }}"
7+
data-below-sidebar="{{ belowSidebarPath }}">
8+
{{ #self }}
9+
<div>{{ >source_link }}<h1><span class="kind-class">{{{ nameWithGenerics }}}</span> {{ kind }} {{ >feature_set }} {{ >categorization }}</h1></div>
10+
{{ /self }}
1111

12-
{{#clazz}}
13-
{{>documentation}}
12+
{{ #clazz }}
13+
{{ >documentation }}
1414

15-
{{#hasModifiers}}
15+
{{ #hasModifiers }}
1616
<section>
1717
<dl class="dl-horizontal">
1818
{{ >super_chain }}
1919
{{ >interfaces }}
2020
{{ >mixed_in_types }}
2121

22-
{{#hasPublicImplementors}}
23-
<dt>Implementers</dt>
24-
<dd><ul class="comma-separated clazz-relationships">
25-
{{#publicImplementorsSorted}}
26-
<li>{{{linkedName}}}</li>
27-
{{/publicImplementorsSorted}}
28-
</ul></dd>
29-
{{/hasPublicImplementors}}
22+
{{ #hasPublicImplementors }}
23+
<dt>Implementers</dt>
24+
<dd><ul class="comma-separated clazz-relationships">
25+
{{ #publicImplementorsSorted }}
26+
<li>{{{ linkedName }}}</li>
27+
{{ /publicImplementorsSorted }}
28+
</ul></dd>
29+
{{ /hasPublicImplementors }}
3030

31-
{{#hasPotentiallyApplicableExtensions}}
32-
<dt>Available Extensions</dt>
33-
<dd><ul class="comma-separated clazz-relationships">
34-
{{#potentiallyApplicableExtensionsSorted}}
35-
<li>{{{linkedName}}}</li>
36-
{{/potentiallyApplicableExtensionsSorted}}
37-
</ul></dd>
38-
{{/hasPotentiallyApplicableExtensions}}
31+
{{ #hasPotentiallyApplicableExtensions }}
32+
<dt>Available Extensions</dt>
33+
<dd><ul class="comma-separated clazz-relationships">
34+
{{ #potentiallyApplicableExtensionsSorted }}
35+
<li>{{{ linkedName }}}</li>
36+
{{ /potentiallyApplicableExtensionsSorted }}
37+
</ul></dd>
38+
{{ /hasPotentiallyApplicableExtensions }}
3939

4040
{{ >container_annotations }}
4141
</dl>
4242
</section>
43-
{{/hasModifiers}}
43+
{{ /hasModifiers }}
4444

4545
{{ >constructors }}
4646

47-
{{#hasPublicInstanceFields}}
47+
{{ #hasPublicInstanceFields }}
4848
<section class="summary offset-anchor{{ #publicInheritedInstanceFields }} inherited{{ /publicInheritedInstanceFields }}" id="instance-properties">
4949
<h2>Properties</h2>
5050

5151
<dl class="properties">
52-
{{#publicInstanceFieldsSorted}}
53-
{{>property}}
54-
{{/publicInstanceFieldsSorted}}
52+
{{ #publicInstanceFieldsSorted }}
53+
{{ >property }}
54+
{{ /publicInstanceFieldsSorted }}
5555
</dl>
5656
</section>
57-
{{/hasPublicInstanceFields}}
57+
{{ /hasPublicInstanceFields }}
5858

5959
{{ >instance_methods }}
6060
{{ >instance_operators }}
6161
{{ >static_properties }}
6262
{{ >static_methods }}
6363
{{ >static_constants }}
64-
{{/clazz}}
64+
{{ /clazz }}
6565

6666
</div> <!-- /.main-content -->
6767

6868
<div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
69-
{{>search_sidebar}}
70-
<h5>{{parent.name}} {{parent.kind}}</h5>
69+
{{ >search_sidebar }}
70+
<h5>{{ parent.name }} {{ parent.kind }}</h5>
7171
<div id="dartdoc-sidebar-left-content"></div>
7272
</div>
7373

7474
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
7575
</div><!--/.sidebar-offcanvas-->
7676

77-
{{>footer}}
77+
{{ >footer }}

lib/templates/html/enum.html

+52-52
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
11
{{>head}}
22

3-
<div
4-
id="dartdoc-main-content"
5-
class="main-content"
6-
data-above-sidebar="{{ aboveSidebarPath }}"
7-
data-below-sidebar="{{ belowSidebarPath }}">
8-
{{ #self }}
9-
<div>{{ >source_link }}
10-
<h1>
11-
<span class="kind-enum">{{{ nameWithGenerics }}}</span>
12-
{{ kind }} {{ >feature_set }} {{ >categorization }}
13-
</h1>
14-
</div>
15-
{{ /self }}
3+
<div
4+
id="dartdoc-main-content"
5+
class="main-content"
6+
data-above-sidebar="{{ aboveSidebarPath }}"
7+
data-below-sidebar="{{ belowSidebarPath }}">
8+
{{ #self }}
9+
<div>{{ >source_link }}
10+
<h1>
11+
<span class="kind-enum">{{{ nameWithGenerics }}}</span>
12+
{{ kind }} {{ >feature_set }} {{ >categorization }}
13+
</h1>
14+
</div>
15+
{{ /self }}
1616

17-
{{ #eNum }}
17+
{{ #eNum }}
1818
{{ >documentation }}
1919

2020
{{ #hasModifiers }}
21-
<section>
22-
<dl class="dl-horizontal">
23-
{{ >super_chain }}
24-
{{ >interfaces }}
25-
{{ >mixed_in_types }}
26-
{{ >container_annotations }}
27-
</dl>
28-
</section>
21+
<section>
22+
<dl class="dl-horizontal">
23+
{{ >super_chain }}
24+
{{ >interfaces }}
25+
{{ >mixed_in_types }}
26+
{{ >container_annotations }}
27+
</dl>
28+
</section>
2929
{{ /hasModifiers }}
3030

3131
{{ >constructors }}
3232

3333
{{ #hasPublicEnumValues }}
34-
<section class="summary offset-anchor" id="values">
35-
<h2>Values</h2>
34+
<section class="summary offset-anchor" id="values">
35+
<h2>Values</h2>
3636

37-
<dl class="properties">
38-
{{ #publicEnumValues }}
39-
{{ >constant }}
40-
{{ /publicEnumValues }}
41-
</dl>
42-
</section>
37+
<dl class="properties">
38+
{{ #publicEnumValues }}
39+
{{ >constant }}
40+
{{ /publicEnumValues }}
41+
</dl>
42+
</section>
4343
{{ /hasPublicEnumValues }}
4444

4545
{{ #hasPublicInstanceFields }}
46-
<section
47-
class="
48-
summary
49-
offset-anchor
50-
{{ #publicInheritedInstanceFields }}inherited{{ /publicInheritedInstanceFields }}"
51-
id="instance-properties">
52-
<h2>Properties</h2>
46+
<section
47+
class="
48+
summary
49+
offset-anchor
50+
{{ #publicInheritedInstanceFields }}inherited{{ /publicInheritedInstanceFields }}"
51+
id="instance-properties">
52+
<h2>Properties</h2>
5353

54-
<dl class="properties">
55-
{{ #publicInstanceFieldsSorted }}
56-
{{ >property }}
57-
{{ /publicInstanceFieldsSorted }}
58-
</dl>
59-
</section>
54+
<dl class="properties">
55+
{{ #publicInstanceFieldsSorted }}
56+
{{ >property }}
57+
{{ /publicInstanceFieldsSorted }}
58+
</dl>
59+
</section>
6060
{{ /hasPublicInstanceFields }}
6161

6262
{{ >instance_methods }}
6363
{{ >instance_operators }}
6464
{{ >static_properties }}
6565
{{ >static_methods }}
6666
{{ >static_constants }}
67-
{{ /eNum }}
68-
</div><!-- /.main-content -->
67+
{{ /eNum }}
68+
</div><!-- /.main-content -->
6969

70-
<div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
71-
{{ >search_sidebar}}
72-
<h5>{{ parent.name }} {{ parent.kind }}</h5>
73-
<div id="dartdoc-sidebar-left-content"></div>
74-
</div>
70+
<div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
71+
{{ >search_sidebar }}
72+
<h5>{{ parent.name }} {{ parent.kind }}</h5>
73+
<div id="dartdoc-sidebar-left-content"></div>
74+
</div>
7575

76-
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
77-
</div><!-- /.sidebar-offcanvas -->
76+
<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
77+
</div><!-- /.sidebar-offcanvas -->
7878

7979
{{ >footer }}

0 commit comments

Comments
 (0)