From 7a5b6a3261b9e5393e01176f25b56f4d69b3abda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 3 Jan 2023 17:30:15 +0100 Subject: [PATCH] fix(permissions): fix italic font in permission prompt (#17249) --- runtime/permissions/prompter.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/runtime/permissions/prompter.rs b/runtime/permissions/prompter.rs index d72d78749a..a738988355 100644 --- a/runtime/permissions/prompter.rs +++ b/runtime/permissions/prompter.rs @@ -201,11 +201,8 @@ impl PermissionPrompter for TtyPrompter { if let Some(api_name) = api_name { eprintln!(" ├ Requested by `{}` API", api_name); } - let msg = format!( - " ├ Run again with --allow-{} to bypass this prompt.", - name - ); - eprintln!("{}", colors::italic(&msg)); + let msg = format!("Run again with --allow-{} to bypass this prompt.", name); + eprintln!(" ├ {}", colors::italic(&msg)); eprint!(" └ {}", colors::bold("Allow?")); eprint!(" {} > ", OPTS); let value = loop {