mirror of
https://github.com/nushell/nushell
synced 2024-12-28 22:13:10 +00:00
Add hex pretty print to 'to html' (#2221)
This commit is contained in:
parent
2dea392e40
commit
c65acc174d
1 changed files with 4 additions and 0 deletions
|
@ -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>");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue