This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit b8e29d9a16211f61417f85edc7d36abc9cd09f94
Author: Alex Harui <aha...@apache.org>
AuthorDate: Thu Jan 10 22:44:18 2019 -0800

    remove linefeeds so they don't result in string continuation warnings
---
 .../apache/royale/compiler/internal/codegen/js/jx/LiteralEmitter.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/LiteralEmitter.java
 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/LiteralEmitter.java
index 6c79341..939f498 100644
--- 
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/LiteralEmitter.java
+++ 
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/codegen/js/jx/LiteralEmitter.java
@@ -107,6 +107,7 @@ public class LiteralEmitter extends JSSubEmitter implements
                                    if (child instanceof LiteralNode)
                                    {
                                        s = ((LiteralNode)child).getValue(true);
+                                       s = s.replace("\n", "");
                                        if (s.contains("'"))
                                            sb.append("\"" + s + "\"");
                                        else

Reply via email to