Remove trailing newline when displaying decoded rlwinm info

This commit is contained in:
LagoLunatic 2024-12-01 20:34:48 -05:00
parent 1f6b4ac8c4
commit c0e9af54a5
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ fn ins_hover_ui(
}
if let Some(demangled) = rlwinmdec::decode(&ins.formatted) {
ui.colored_label(appearance.highlight_color, &demangled);
ui.colored_label(appearance.highlight_color, demangled.trim());
}
});
}

View File

@ -19,7 +19,7 @@ pub fn rlwinm_decode_window(
if let Some(demangled) = rlwinmdec::decode(&state.text) {
ui.scope(|ui| {
ui.style_mut().override_text_style = Some(TextStyle::Monospace);
ui.colored_label(appearance.replace_color, &demangled);
ui.colored_label(appearance.replace_color, demangled.trim());
});
if ui.button("Copy").clicked() {
ui.output_mut(|output| output.copied_text = demangled);