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

This commit is contained in:
Jonathan Turner 2020-07-19 12:14:40 +12:00 committed by GitHub
parent 0c43a4d04b
commit 2dea392e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,11 @@ async fn to_html(
output_string.push_str(&base64::encode(&b));
output_string.push_str("\">");
}
_ => {}
_ => {
let output = pretty_hex::pretty_hex(&b);
output_string.push_str(&output);
}
}
}
_ => {