Add hex pretty print to 'to html' (#2221)

This commit is contained in:
Jonathan Turner 2020-07-19 16:44:15 +12:00 committed by GitHub
parent 2dea392e40
commit c65acc174d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,14 +207,18 @@ async fn to_html(
_ => {
let output = pretty_hex::pretty_hex(&b);
output_string.push_str("<pre>");
output_string.push_str(&output);
output_string.push_str("</pre>");
}
}
}
_ => {
let output = pretty_hex::pretty_hex(&b);
output_string.push_str("<pre>");
output_string.push_str(&output);
output_string.push_str("</pre>");
}
}
}