Talk:Patch Messaging Change "Enter Key" To Create Newline
From WebOS Internals
this is a useful mod, thx for sharing!
as for displaying the newlines and spaces in the message body, the issue is that pretty much everything is a web page. therefore you have to wrap the message text in <pre> tags to preserve the format. see this link for a solution to the problem.
- That is one method, although the <pre> tag makes the text look like a typewriter and prevents word wrapping from occurring correctly. A better alternative is actually replace the newline characters with <br> tags before the message is rendered.
- Tk102 00:06, 24 August 2009 (UTC)
This is great. I am often hitting enter by accident and sending before I'm ready, so please also include how to do the opposite of your plan: enter does a new line and shift-enter sends. Thanks!!!