diff options
Diffstat (limited to 'packages/pogen/src')
-rw-r--r-- | packages/pogen/src/potextract.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/pogen/src/potextract.ts b/packages/pogen/src/potextract.ts index e75c17d55..3e9a95ded 100644 --- a/packages/pogen/src/potextract.ts +++ b/packages/pogen/src/potextract.ts @@ -154,7 +154,7 @@ function processFile( path, line: lc.line, comment: getComment(tte), - template: getTemplate(tte.template).replace(/"/g, '\\"'), + template: getTemplate(tte.template), }; return res; } @@ -172,6 +172,8 @@ function processFile( function formatMsgLine(head: string, msg: string) { // Do escaping, wrap break at newlines + console.log("head", JSON.stringify(head)); + console.log("msg", JSON.stringify(msg)); let parts = msg .match(/(.*\n|.+$)/g) .map((x) => x.replace(/\n/g, "\\n").replace(/"/g, '\\"')) |