I'm temporarily replacing it in the code; hopefully, some configuration options in Fish will allow me to directly remove this line break.
fn trim_ansi_newline(s: &str) -> String {
if let Some(trimmed) = s.strip_suffix("\n\x1b[m") {
// Remove "\n\x1b[m"
format!("{}\x1b[m", trimmed)
} else {
s.to_string()
}
}
fish-shell/fish-shell#12096