fix(dtmm): Trim whitespace in log lines

This commit is contained in:
Lucas Schwiderski 2023-04-05 13:44:30 +02:00
parent c7ec318e83
commit c4425f5b6b
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -255,7 +255,7 @@ impl AppDelegate<State> for Delegate {
.expect("command type matched but didn't contain the expected value");
if let Some(line) = line.take() {
let line = String::from_utf8_lossy(&line);
state.log.push_back(ansi_to_rich_text(&line));
state.log.push_back(ansi_to_rich_text(line.trim()));
}
Handled::Yes
}