diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-02-22 11:49:13 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-02-22 11:49:13 +0100 |
commit | 89815175a0c084f27eb5e150f59c458a74774242 (patch) | |
tree | a03cda4ea5a30685417bfe04fcc17ecb5b10fd55 /node_modules | |
parent | 66d05038fdac611ce474ffe047c28524dad0c4ad (diff) |
more i18n/spacing fixes
Diffstat (limited to 'node_modules')
-rw-r--r-- | node_modules/pogen/pogen.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/pogen/pogen.js b/node_modules/pogen/pogen.js index ed634ef0d..203ed442c 100644 --- a/node_modules/pogen/pogen.js +++ b/node_modules/pogen/pogen.js @@ -190,6 +190,12 @@ function processFile(sourceFile) { var e = childNode; var s = e.getFullText(); var t = s.split("\n").map(trim).join(" "); + if (s[0] === " ") { + t = " " + t; + } + if (s[s.length - 1] === " ") { + t = t + " "; + } fragments.push(t); } case ts.SyntaxKind.JsxOpeningElement: |