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_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,6 @@ func applyManifest(manifest *model.Manifest) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
manifestStr := string(manifestBytes)
|
manifestStr := string(manifestBytes)
|
||||||
manifestStr = strings.ReplaceAll(manifestStr, "\\n", "\\\n")
|
|
||||||
|
|
||||||
// write generated code to file by using Go file template.
|
// write generated code to file by using Go file template.
|
||||||
if err := ioutil.WriteFile(
|
if err := ioutil.WriteFile(
|
||||||
|
@ -145,6 +144,9 @@ func applyManifest(manifest *model.Manifest) error {
|
||||||
}
|
}
|
||||||
manifestStr := string(manifestBytes)
|
manifestStr := string(manifestBytes)
|
||||||
|
|
||||||
|
// Escape newlines
|
||||||
|
manifestStr = strings.ReplaceAll(manifestStr, `\n`, `\\n`)
|
||||||
|
|
||||||
// write generated code to file by using JS file template.
|
// write generated code to file by using JS file template.
|
||||||
if err := ioutil.WriteFile(
|
if err := ioutil.WriteFile(
|
||||||
"webapp/src/manifest.ts",
|
"webapp/src/manifest.ts",
|
||||||
|
|
Reference in a new issue