"podman info" with Go template should be able to print without the appended newline #14888
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
podman info with a Go template should support writing output without the extra appended newline.
(Changing this behaviour would be a breaking change so maybe a new command-line option is needed)
The extra newline makes it difficult to print an array with the entries separated by newlines without ending up with an empty line in the end. See for instance
#14887 (comment)
Steps to reproduce the issue:
podman info -f {{.Version.Version}} | od -c
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
podman info
also has an extra newline@vrothberg asked me to create this issue.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):The text was updated successfully, but these errors were encountered: