Skip to content

fish_indent always outputs an extra newline . #30

@ahaoboy

Description

@ahaoboy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions