Fix bad merge (#126)
This commit is contained in:
parent
511805e36c
commit
eae9f9826a
2 changed files with 3 additions and 2 deletions
|
@ -25,4 +25,3 @@ indent_style = tab
|
|||
indent_style = space
|
||||
indent_size = 4
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Reference in a new issue