mirror of
https://github.com/nushell/nushell.git
synced 2025-05-02 17:14:27 +02:00
Add hex pretty print to 'to html' (#2221)
This commit is contained in:
parent
2dea392e40
commit
c65acc174d
@ -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 New Issue
Block a user