Page 1 of 1

Long line text break

Posted: Fri Jun 18, 2010 6:10 pm
by siegerstein
Spket editor breaks lines line this:

Code: Select all

var longHTML = "<div id='bla-bla'>some text here... some text here... some text here...</div>"
	     + "<div id='bla-bla'>some text here... some text here... some text here...</div>"
	     + "<div id='bla-bla'>some text here... some text here... some text here...</div>";
but should be like this (as per JSLint)

Code: Select all

var longHTML = "<div id='bla-bla'>some text here... some text here... some text here...</div>" +
	       "<div id='bla-bla'>some text here... some text here... some text here...</div>" +
	       "<div id='bla-bla'>some text here... some text here... some text here...</div>";