about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-04-01 20:18:08 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-04-01 20:18:08 +0200
commit6f3d988418a0e3f695e56c416f8967b984f802d7 (patch)
tree2f0ba82419f08d59be26a6c2558d18f68f697921 /src/librustdoc/html
parent0677edc86e342f333d4828b0ee1ef395a4e70fe5 (diff)
downloadrust-6f3d988418a0e3f695e56c416f8967b984f802d7.tar.gz
rust-6f3d988418a0e3f695e56c416f8967b984f802d7.zip
Fix invalid DOM generation
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/render/print_item.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index 1223b6c8002..3ad376b8a2c 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -615,7 +615,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
                     w.write_str(";\n");
 
                     if pos < required.len() - 1 {
-                        w.write_str("<div class=\"item-spacer\"></div>");
+                        w.write_str("<span class=\"item-spacer\"></span>");
                     }
                 }
                 if !required.is_empty() && !provided.is_empty() {
@@ -641,7 +641,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
                         }
                     }
                     if pos < provided.len() - 1 {
-                        w.write_str("<div class=\"item-spacer\"></div>");
+                        w.write_str("<span class=\"item-spacer\"></span>");
                     }
                 }
                 if toggle {