Skip to content

rich --print always adds an extra newline #80

@schwa

Description

@schwa

I'd expect rich --print to always preserve the lines of the input file. However rich --print always seems to add a newline. It would be great if no newlines were added during rich --print. I'd also recommend the addition of a -n flag that works like the same flag in echo to remove automatic line endings.

> echo -n | wc -l
       0
> echo | wc -l
       1
> echo -n | rich - --print | wc -l
       1
> echo | rich - --print | wc -l
       2
> echo -n | rich - --print --soft | wc -l
       1
> echo | rich - --print --soft | wc -l
       2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions