I have table movies with column description. Text in that column is saved in this format:
This is movie about....
The best scene is...
and when i want to show that text in textarea on GUI there was an error because it coulnd show properly this format. It works great when the format in column is like this:
This is movie about.... \n The best scene is...
then it show it properly in textarea and everything works great. I've tried this:
bean.setDescription(movie.getDescription().replaceAll("\r\n", "\n"));
but it doesn't work, it still put multiple line text to bean. Does anyone know how can i this mulptiple line text convert to single line text and add \n?