From d4d5aa436d4e378feff27491b11f351806c578aa Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 5 Sep 2019 14:15:58 +0200 Subject: [PATCH] Fix invalid span generation when it should be div --- src/librustdoc/html/render.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index d5c47a15948fb..0e046b8cd4456 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -3554,7 +3554,7 @@ fn item_enum(w: &mut fmt::Formatter<'_>, cx: &Context, it: &clean::Item, let ns_id = cx.derive_id(format!("{}.{}", variant.name.as_ref().unwrap(), ItemType::Variant.name_space())); - write!(w, "\ + write!(w, "
\ \ {name}", id = id, @@ -3572,7 +3572,7 @@ fn item_enum(w: &mut fmt::Formatter<'_>, cx: &Context, it: &clean::Item, write!(w, ")")?; } } - write!(w, "")?; + write!(w, "
")?; document(w, cx, variant)?; document_non_exhaustive(w, variant)?; @@ -3583,7 +3583,7 @@ fn item_enum(w: &mut fmt::Formatter<'_>, cx: &Context, it: &clean::Item, let variant_id = cx.derive_id(format!("{}.{}.fields", ItemType::Variant, variant.name.as_ref().unwrap())); - write!(w, "", + write!(w, "
", id = variant_id)?; write!(w, "

Fields of {name}

", name = variant.name.as_ref().unwrap())?; @@ -3609,7 +3609,7 @@ fn item_enum(w: &mut fmt::Formatter<'_>, cx: &Context, it: &clean::Item, document(w, cx, field)?; } } - write!(w, "
")?; + write!(w, "
")?; } render_stability_since(w, variant, it)?; }