fix spurious </span> appearing before the opening tag

This commit is contained in:
QuietMisdreavus
2016-10-13 13:58:04 -05:00
parent 4a6921e10e
commit c6ab68528a

View File

@@ -205,7 +205,7 @@ impl<'a> fmt::Display for WhereClause<'a> {
}
}
if !f.alternate() {
f.write_str("</span>")?;
clause.push_str("</span>");
let plain = format!("{:#}", self);
if plain.len() > 80 {
let padding = repeat("&nbsp;").take(8).collect::<String>();