From da00c868fb6ded23c25efac797375b3249eecfe7 Mon Sep 17 00:00:00 2001 From: Manuel Fuchs Date: Fri, 20 Dec 2024 13:15:28 +0100 Subject: [PATCH] Properly reset on Url and Command --- shared/src/output.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/shared/src/output.rs b/shared/src/output.rs index d609a00..e94a37b 100644 --- a/shared/src/output.rs +++ b/shared/src/output.rs @@ -183,10 +183,15 @@ impl BuildpackOutputText { } } - if let BuildpackOutputTextSection::Value(_) = section { - result.push(VALUE_DELIMITER_CHAR); - result.push_str(ANSI_RESET_CODE); - result.push_str(&self.default_code.clone().unwrap_or_default()); + match section { + BuildpackOutputTextSection::Value(_) + | BuildpackOutputTextSection::Url(_) + | BuildpackOutputTextSection::Command(_) => { + result.push(VALUE_DELIMITER_CHAR); + result.push_str(ANSI_RESET_CODE); + result.push_str(&self.default_code.clone().unwrap_or_default()); + } + BuildpackOutputTextSection::Regular(_) => {} } }