Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop printing newline on stderr when outputting to stdout #1092

Merged
merged 1 commit into from
Mar 20, 2021

Conversation

hairyhenderson
Copy link
Owner

Fixes #1075 and #1074 by removing the feature entirely.

Note that this will change the perceived output when gomplate is used interactively with a template that does not end in a newline. For example:

in bash:

$ gomplate -i "hello world"
hello world$ 

in zsh:

$ gomplate -i "hello world"
hello world%
$ 

Note that this does not affect the stdout stream, which was never modified. Only the stderr stream was modified (and is now no longer modified).

Signed-off-by: Dave Henderson [email protected]

@hairyhenderson hairyhenderson self-assigned this Mar 20, 2021
@hairyhenderson hairyhenderson merged commit c445446 into master Mar 20, 2021
@hairyhenderson hairyhenderson deleted the remove-interactive-trailing-newline-1075 branch March 20, 2021 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gomplate always seems to produce an extra newline in output to STDERR - again
1 participant