Skip to content

Commit e26ae95

Browse files
committed
rustdoc: format type layout template with newline after <p>
1 parent 3a16db1 commit e26ae95

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

src/librustdoc/html/templates/type_layout.html

+16-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ <h2 id="layout" class="small-section-header"> {# #}
1616
</div> {# #}
1717
<p><strong>Size:</strong> {{ type_layout_size|safe }}</p> {# #}
1818
{% if !variants.is_empty() %}
19-
<p><strong>Size for each variant:</strong></p> {# #}
19+
<p> {# #}
20+
<strong>Size for each variant:</strong> {# #}
21+
</p> {# #}
2022
<ul> {# #}
2123
{% for (name, layout_size) in variants %}
2224
<li> {# #}
@@ -29,17 +31,23 @@ <h2 id="layout" class="small-section-header"> {# #}
2931
{# This kind of layout error can occur with valid code, e.g. if you try to
3032
get the layout of a generic type such as `Vec<T>`. #}
3133
{% when Err(LayoutError::Unknown(_)) %}
32-
<p><strong>Note:</strong> Unable to compute type layout, {#+ #}
33-
possibly due to this type having generic parameters. {#+ #}
34-
Layout can only be computed for concrete, fully-instantiated types.</p> {# #}
34+
<p> {# #}
35+
<strong>Note:</strong> Unable to compute type layout, {#+ #}
36+
possibly due to this type having generic parameters. {#+ #}
37+
Layout can only be computed for concrete, fully-instantiated types. {# #}
38+
</p> {# #}
3539
{# This kind of error probably can't happen with valid code, but we don't
3640
want to panic and prevent the docs from building, so we just let the
3741
user know that we couldn't compute the layout. #}
3842
{% when Err(LayoutError::SizeOverflow(_)) %}
39-
<p><strong>Note:</strong> Encountered an error during type layout; {#+ #}
40-
the type was too big.</p> {# #}
43+
<p> {# #}
44+
<strong>Note:</strong> Encountered an error during type layout; {#+ #}
45+
the type was too big. {# #}
46+
</p> {# #}
4147
{% when Err(LayoutError::NormalizationFailure(_, _)) %}
42-
<p><strong>Note:</strong> Encountered an error during type layout; {#+ #}
43-
the type failed to be normalized.</p> {# #}
48+
<p> {# #}
49+
<strong>Note:</strong> Encountered an error during type layout; {#+ #}
50+
the type failed to be normalized. {# #}
51+
</p> {# #}
4452
{% endmatch %}
4553
</div> {# #}

0 commit comments

Comments
 (0)