Difference between revisions of "Talk:Patch Messaging Change "Enter Key" To Create Newline"
Jump to navigation
Jump to search
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
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 <nowiki><pre></nowiki> tags to preserve the format. see [[Patch_Messaging_Adding_Timestamps_to_All_Received_Messages#Add_Timestamps_to_All_Messages_-_another_approach|this link]] for a solution to the problem. | 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 <nowiki><pre></nowiki> tags to preserve the format. see [[Patch_Messaging_Adding_Timestamps_to_All_Received_Messages#Add_Timestamps_to_All_Messages_-_another_approach|this link]] for a solution to the problem. | ||
+ | : That is one method, although the <nowiki><pre></nowiki> 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 <nowiki><br></nowiki> tags before the message is rendered. | ||
+ | : [[User:Tk102|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!!! |
Latest revision as of 00:06, 24 August 2009
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!!!