Skip to content

Commit fde3155

Browse files
committed
✨ Trim leading/trailing whitespace from template
1 parent 93ecb5f commit fde3155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Cli/Util/Printer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Printer {
99
} else {
1010
if let template = Template(path: templatePath) {
1111
if let render = template.render(events: events) {
12-
StdOut.print(render)
12+
StdOut.print(render.trimmingCharacters(in: .whitespacesAndNewlines))
1313
} else {
1414
StdErr.print("Failed to render template at `\(templatePath)`")
1515
}

0 commit comments

Comments
 (0)