mirror of
https://github.com/nushell/nushell
synced 2025-01-01 07:48:53 +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);
|
let output = pretty_hex::pretty_hex(&b);
|
||||||
|
|
||||||
|
output_string.push_str("<pre>");
|
||||||
output_string.push_str(&output);
|
output_string.push_str(&output);
|
||||||
|
output_string.push_str("</pre>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
let output = pretty_hex::pretty_hex(&b);
|
let output = pretty_hex::pretty_hex(&b);
|
||||||
|
|
||||||
|
output_string.push_str("<pre>");
|
||||||
output_string.push_str(&output);
|
output_string.push_str(&output);
|
||||||
|
output_string.push_str("</pre>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue