passbe/beef-migration-test-2 — Issue #175: Add a function to ERB to correctly format multi-line strings in javascript
Author: passbe
Created: 2011-12-08 10:10:21+00:00
State: open
Labels: GC Imported Issue

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