miniscruff/changie

Extra newline character in the output of `changie latest`

Closed this issue · 1 comments

Description

The output of changie latest contains an extra newline character. This is not the case for other commands, such as change next patch.

Reproduction Steps

Steps to reproduce the behavior:

  1. Use changie latest with the CLI or the official GitHub Action

  2. Check the output includes an extra newline:

    $ changie latest | cat -e
    v1.10.1$

    This is not the case of next:

    $ changie next patch | cat -e
    v1.10.2

What happened

Using the output of the GitHub action in a filename, leads to an ENOENT error:

Error: ENOENT: no such file or directory, open '.changes/0.4.2
.md'

Expected behavior

The output doesn't have any extra newlines.

I'm working on a PR if this indeed a bug.

Good find, those invisible characters are hard to track down for sure.