Where do you want to write ? If is in the HTML directly you must to replace the new line character and the space character with appropriate html code.
Check this out : http://code.cside.com/3rdpage/us/newLine.html http://code.cside.com/3rdpage/us/space.html Hope this help, Bowie ============== http://www.html5bydemo.com Le jeudi 29 mars 2012 22:33:10 UTC+2, Deepak Singh a écrit : > > Hi, > > I have a Textarea and i want to get the text written from this in the same > same format as user has entered. > Means, with spaces and line breaks same as user has entered. > How can i achieve this ? > > Currently it gives the text without line breaks with textarea.getText(). > > Thanks > Deepak Singh > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/K0w1By5GZzAJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
