Fix bug in librustdoc
in which an unmatched "</table>" is emitted.
This commit is contained in:
parent
49de80d7ea
commit
970e15d3c3
1 changed files with 4 additions and 1 deletions
|
@ -1818,7 +1818,10 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
|
|||
}
|
||||
}
|
||||
|
||||
write!(w, "</table>")
|
||||
if curty.is_some() {
|
||||
write!(w, "</table>")?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Vec<String> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue