- i18n.str`Please select an exchange. You can review the details before after your selection.`
+ {i18n.str`Please select an exchange. You can review the details before after your selection.`}
{this.props.suggestedExchangeUrl && (
@@ -352,7 +352,9 @@ class ExchangeSelection extends ImplicitStateComponent {
Known Exchanges
{exchanges.map((e) => (
))}
@@ -368,9 +370,9 @@ class ExchangeSelection extends ImplicitStateComponent
{
return (
- {"You are about to withdraw "}
+ You are about to withdraw
{renderAmount(this.props.amount)}
- {" from your bank account into your wallet."}
+ from your bank account into your wallet.
{this.selectingExchange() ? this.renderSelect() : this.renderConfirm()}
diff --git a/tooling/pogen/pogen.js b/tooling/pogen/pogen.js
index 03cc0c34e..787a7ec7e 100644
--- a/tooling/pogen/pogen.js
+++ b/tooling/pogen/pogen.js
@@ -188,7 +188,14 @@ function processFile(sourceFile) {
case ts.SyntaxKind.JsxText:
{
var e = childNode;
- var t = e.getText().split("\n").map(trim).join("\n");
+ var s = e.getText();
+ var t = s.split("\n").map(trim).join("\n");
+ if (s.length >= 1 && (s[0] === "\n" || s[0] === " ")) {
+ t = " " + t;
+ }
+ if (s.length >= 1 && (s[s.length - 1] === "\n" || s[s.length - 1] === " ")) {
+ t = t + " ";
+ }
fragments.push(t);
}
case ts.SyntaxKind.JsxOpeningElement:
diff --git a/tooling/pogen/pogen.ts b/tooling/pogen/pogen.ts
index 5721b5712..0903b9db7 100644
--- a/tooling/pogen/pogen.ts
+++ b/tooling/pogen/pogen.ts
@@ -211,7 +211,14 @@ export function processFile(sourceFile: ts.SourceFile) {
case ts.SyntaxKind.JsxText:
{
let e = childNode as ts.JsxText;
- let t = e.getText().split("\n").map(trim).join("\n");
+ let s = e.getText();
+ let t = s.split("\n").map(trim).join("\n");
+ if (s.length >= 1 && (s[0] === "\n" || s[0] === " ")) {
+ t = " " + t;
+ }
+ if (s.length >= 1 && (s[s.length-1] === "\n" || s[s.length-1] === " ")) {
+ t = t + " ";
+ }
fragments.push(t);
}
case ts.SyntaxKind.JsxOpeningElement: