Skip to content

Commit 3d5f3b8

Browse files
twifkakbanaag
authored andcommitted
Don't output a trailing newline by default. Doing so modifies the HTML, and
thus breaks idempotence. PiperOrigin-RevId: 288735975
1 parent b4be29b commit 3d5f3b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/transform/transform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434

3535
var documentURLFlag = flag.String("url", "", "The URL of the document being processed, e.g. https://example.com/amphtml/article1234")
3636
var configFlag = flag.String("config", "DEFAULT", "The configuration that determines the transformations to run. Valid values are DEFAULT, NONE, VALIDATION. See transformer.go for more info.")
37-
var skipNewlineFlag = flag.Bool("noeol", false, "do not output the trailing newline")
37+
var skipNewlineFlag = flag.Bool("noeol", true, "do not output the trailing newline")
3838

3939
func checkErr(e error) {
4040
if e != nil {

0 commit comments

Comments
 (0)