Difference between revisions of "Patch Email Fix Broken Formatting"

From WebOS Internals
Jump to navigation Jump to search
m (Application:Email Fix Broken Formatting moved to Patch Email Fix Broken Formatting: Colon isn't working, search doesn't return any pages with ':' in title. Moving all "Application:" to "Patch ")
 
Line 1: Line 1:
 +
{{template:patch}}
 
After webOS 1.1, this fix is no longer necessary.  Here it is anyway though:
 
After webOS 1.1, this fix is no longer necessary.  Here it is anyway though:
  

Latest revision as of 00:17, 3 August 2009


After webOS 1.1, this fix is no longer necessary. Here it is anyway though:

---



There is a well known problem with the Pre's e-mail handling of forward and reply messages. (see http://forums.palm.com/palm/board/message?board.id=webossoftware&thread.id=884&view=by_date_ascending&page=1)

For example:

with the pre - if I reply to an email all the formatting is lost. eg -get an email, I reply to that email, all the people that I reply to lose all formatting when they view the message that I sent in reply - it is like all the hard returns are lost and they see just one string of content.. Do others experience this issue?

---

Here is a simple two-line fix for this annoying problem:

--- /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js.sav  Thu Jul  9 22:40:20 2009
+++ /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js      Sat Jul 11 23:54:43 2009
@@ -602,6 +602,8 @@
                        originalText = originalText.slice(splitIndex);
                }
        }
+       else
+          originalText = originalText.gsub("\n","<br/>");

        // Truncate to 100K if the message is too long.
        // cutting it off conservatively).

Thanks halula from the Palm forums for the solution. The full answer post is available at http://forums.palm.com/palm/board/message?board.id=webossoftware&message.id=5283#M5283