diff --git a/.editorconfig b/.editorconfig index 24bfbba..a517dca 100644 --- a/.editorconfig +++ b/.editorconfig @@ -25,4 +25,3 @@ indent_style = tab indent_style = space indent_size = 4 trim_trailing_whitespace = false - diff --git a/build/manifest/main.go b/build/manifest/main.go index 87a5b20..14e6f4f 100644 --- a/build/manifest/main.go +++ b/build/manifest/main.go @@ -123,7 +123,6 @@ func applyManifest(manifest *model.Manifest) error { return err } manifestStr := string(manifestBytes) - manifestStr = strings.ReplaceAll(manifestStr, "\\n", "\\\n") // write generated code to file by using Go file template. if err := ioutil.WriteFile( @@ -145,6 +144,9 @@ func applyManifest(manifest *model.Manifest) error { } manifestStr := string(manifestBytes) + // Escape newlines + manifestStr = strings.ReplaceAll(manifestStr, `\n`, `\\n`) + // write generated code to file by using JS file template. if err := ioutil.WriteFile( "webapp/src/manifest.ts",