The simplest way to explain my problem is to show you an example. CODE USING String: String str = "Two"; str += "\n"; str += "lines"; System.out.println(str);
OUTPUT: Two lines CODE USING StringBuffer: StringBuffer sb = new StringBuffer(); sb.append("Two"); sb.append("\n"); sb.append("lines"); System.out.println(sb.toString()); OUTPUT: Two\nlines I've tried everything to try to get it to recognize the \n's, but nothing works. It won't recognize anything that came from StringBuffer as an escape character. It reads them all literally. \r, \t, and even html tags. Is this a bug or is there something I'm missing?
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.