flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - FLEX-35173 handle newlines in strings
Date Tue, 15 Nov 2016 00:52:21 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 2b54f35c1 -> 30e20bbf7


FLEX-35173 handle newlines in strings


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/30e20bbf
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/30e20bbf
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/30e20bbf

Branch: refs/heads/develop
Commit: 30e20bbf7b8d508ebfc0d11c17a883b20aa71d86
Parents: 2b54f35
Author: Alex Harui <aharui@apache.org>
Authored: Mon Nov 14 16:27:16 2016 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Nov 14 16:52:17 2016 -0800

----------------------------------------------------------------------
 .../compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/30e20bbf/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
index f951b4d..943bf70 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
@@ -2190,6 +2190,7 @@ public class MXMLFlexJSEmitter extends MXMLEmitter implements
             s = s.replace(ASEmitterTokens.SINGLE_QUOTE.getToken(), 
                     "\\" + ASEmitterTokens.SINGLE_QUOTE.getToken());
         }
+        s = s.replace(ASEmitterTokens.NEW_LINE.getToken(), "\\n");
         ps.value += s;
         
         if (ps.valueNeedsQuotes)


Mime
View raw message