passbe/beef-migration-test-3 — Issue #174: Add a function to ERB to correctly format multi-line strings in javascript
Author: passbe
Created: 2011-12-08 23:32:43+00:00
State: open

alert("<%== @text %>");

produces:

alert("test
test
test");

Replace with something like:

alert("<%== format_multiline @text %>");

to get:

alert("test\ntest\ntest");
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=44