I don't know how to put this, so it's possible that the title isn't entirely correct :-).
In my JSP-file, I have the following code:
onclick="showFullName('${subject.name}', '${subject.surname}');"
When everything is compiled, following HTML code is shown on the page:
onclick="showFullName('Jackson', 'Michael
');"
The problem is, it generates 2 lines, instead of 1. When you press that button, Javascript generates an error, saying that string literal isnt terminated. When I just print out ${subject.surname}, there's also a line break.
Is it possible to remove that line break?