mirror of
https://github.com/nushell/nushell.git
synced 2025-07-14 21:35:58 +02:00
Add hex pretty print to 'to html' (#2221)
This commit is contained in:
@ -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>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user