Skip to content

Commit

Permalink
Properly reset on Url and Command
Browse files Browse the repository at this point in the history
  • Loading branch information
Malax committed Dec 20, 2024
1 parent d0ac95f commit da00c86
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions shared/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_) => {}
}
}

Expand Down

0 comments on commit da00c86

Please sign in to comment.