about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-04-18 10:52:36 -0700
committerMichael Howell <michael@notriddle.com>2023-04-18 11:14:43 -0700
commite26ae9530b21288ea6f9ca73d8c8d895c47807c3 (patch)
treef92e3dcc841caa5c217c3067e684003493c442bf
parent3a16db1bb4c863b2afe5ecd745c1d7a7741a5e11 (diff)
downloadrust-e26ae9530b21288ea6f9ca73d8c8d895c47807c3.tar.gz
rust-e26ae9530b21288ea6f9ca73d8c8d895c47807c3.zip
rustdoc: format type layout template with newline after `<p>`
-rw-r--r--src/librustdoc/html/templates/type_layout.html24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/librustdoc/html/templates/type_layout.html b/src/librustdoc/html/templates/type_layout.html
index 9e2c2049e31..58b220c7428 100644
--- a/src/librustdoc/html/templates/type_layout.html
+++ b/src/librustdoc/html/templates/type_layout.html
@@ -16,7 +16,9 @@
             </div> {# #}
             <p><strong>Size:</strong> {{ type_layout_size|safe }}</p> {# #}
             {% if !variants.is_empty() %}
-                <p><strong>Size for each variant:</strong></p> {# #}
+                <p> {# #}
+                    <strong>Size for each variant:</strong> {# #}
+                </p> {# #}
                 <ul> {# #}
                     {% for (name, layout_size) in variants %}
                         <li> {# #}
@@ -29,17 +31,23 @@
         {# This kind of layout error can occur with valid code, e.g. if you try to
            get the layout of a generic type such as `Vec<T>`. #}
         {% when Err(LayoutError::Unknown(_)) %}
-            <p><strong>Note:</strong> Unable to compute type layout, {#+ #}
-            possibly due to this type having generic parameters. {#+ #}
-            Layout can only be computed for concrete, fully-instantiated types.</p> {# #}
+            <p> {# #}
+                <strong>Note:</strong> Unable to compute type layout, {#+ #}
+                possibly due to this type having generic parameters. {#+ #}
+                Layout can only be computed for concrete, fully-instantiated types. {# #}
+            </p> {# #}
         {# This kind of error probably can't happen with valid code, but we don't
            want to panic and prevent the docs from building, so we just let the
            user know that we couldn't compute the layout. #}
         {% when Err(LayoutError::SizeOverflow(_)) %}
-            <p><strong>Note:</strong> Encountered an error during type layout; {#+ #}
-            the type was too big.</p> {# #}
+            <p> {# #}
+                <strong>Note:</strong> Encountered an error during type layout; {#+ #}
+                the type was too big. {# #}
+            </p> {# #}
         {% when Err(LayoutError::NormalizationFailure(_, _)) %}
-            <p><strong>Note:</strong> Encountered an error during type layout; {#+ #}
-            the type failed to be normalized.</p> {# #}
+            <p> {# #}
+                <strong>Note:</strong> Encountered an error during type layout; {#+ #}
+                the type failed to be normalized. {# #}
+            </p> {# #}
     {% endmatch %}
 </div> {# #}