forked from containers/common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/report: handle newline in template string
Docker tries to be smart and replaces \n with the actual newline character. For compat we do the same but this will break formats such as '{{printf "\n"}}' To be backwards compatible with the previous behavior we try to replace and parse the template. If it fails use the original text and parse again. This fix will not be enough. It requires many changes in podman since most commands will do their own NormalizeFormat() call before using this backend which seems wrong and creates a lof of duplication. This has to be fixed in Podman. Required for https://bugzilla.redhat.com/show_bug.cgi?id=2059658 and containers/podman#13446. Signed-off-by: Paul Holzinger <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters