From c65acc174d9f6111eace5082816880d7a8537be4 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Sun, 19 Jul 2020 16:44:15 +1200 Subject: [PATCH] Add hex pretty print to 'to html' (#2221) --- crates/nu-cli/src/commands/to_html.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/nu-cli/src/commands/to_html.rs b/crates/nu-cli/src/commands/to_html.rs index 90483d8468..9f5924935d 100644 --- a/crates/nu-cli/src/commands/to_html.rs +++ b/crates/nu-cli/src/commands/to_html.rs @@ -207,14 +207,18 @@ async fn to_html( _ => { let output = pretty_hex::pretty_hex(&b); + output_string.push_str("
");
                                 output_string.push_str(&output);
+                                output_string.push_str("
"); } } } _ => { let output = pretty_hex::pretty_hex(&b); + output_string.push_str("
");
                         output_string.push_str(&output);
+                        output_string.push_str("
"); } } }