Skip to content

Don't even write newline when given no input with -xml #820

Open
@jidanni

Description

@jidanni
$ tidy -q -xml /dev/null|od -c
0000000  \n
0000001

Please don't even write that. That way one can use test -s
to see if there was any output.

$ ... | tidy -q -xml > file.xml ; test -s file.xml && echo Hurray

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions