Th3Boss Posted March 25, 2013 Share Posted March 25, 2013 Im trying to get it to place a line break after each output function generateTemplate() { output = '$' + templateName + ';' + "<br>"; output += '$ship=' + fit.shipName + ';' + "<br>"; output += '$shipTypeID=' + fit.shipTypeID + ';' + "<br>"; output += '$fitName=' + fit.name + ';' + "<br>"; output += '$fitID=' + fit.fitID + ';' + "<br>"; } output is displayed in a textarea How do I do this? Quote Link to comment https://forums.phpfreaks.com/topic/276150-line-break-help/ Share on other sites More sharing options...
Solution haku Posted March 26, 2013 Solution Share Posted March 26, 2013 (edited) output = '$' + templateName + ';' + "\\\n"; Edited March 26, 2013 by haku Quote Link to comment https://forums.phpfreaks.com/topic/276150-line-break-help/#findComment-1421056 Share on other sites More sharing options...
Th3Boss Posted March 26, 2013 Author Share Posted March 26, 2013 (edited) output = '$' + templateName + ';' + "\\\n"; worked with "\n" It left a \ visible the other way. Thanks! Edited March 26, 2013 by Th3Boss Quote Link to comment https://forums.phpfreaks.com/topic/276150-line-break-help/#findComment-1421059 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.