ceylon/ceylon-js — Issue #45: Multiline strings are not escaped for js
Author: chochos
Created: 2012-02-16 02:13:53+00:00
State: open

This is valid Ceylon code, taken from the Ceylon tour page:

````
print("Hello,
World!");
````

But it gets translated to something like this:

````
$$$cl15.print($$$cl15.String("Hello,
world!");
````

Which simply doesn't run. We need to escape multiline strings in whatever way js expects them to be (if js supports multiline strings; otherwise just replace newlines with \n).