Closed (fixed)
Project:
Privatemsg
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2010 at 16:13 UTC
Updated:
28 Apr 2010 at 08:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirConfirmed. This is because drupal_html_to_text() adds a "\n" to the end of the string.
So we need to add a trim() around that function call (for subject and maybe body too?) in http://blog.worldempire.ch/de/api/function/_pm_email_notify_token/1.
That's a quite simple change, can you create a patch? :)
Comment #2
Michsk commentedI could but never worked with .patch files so i will have to digg in to that first... If someone else can do it in the meanwhile that's ok.
Comment #3
Michsk commentedtrim() does do the job, but it looks pretty hard to create a patch file on a windows machine... i read some of the text here on drupal about patching but didnt find any usefull.
Ps; in my body messages i don't have the linebreak problem.
Comment #4
berdirHave you seen http://drupal.org/node/60234?
Comment #5
berdirAttaching an untested patch. Please test and set to RTBC if it's working.
The body doesn't need it, but it will add an additional empty line and that's imho not necessary. So adding the trim there too.
Comment #6
berdirComment #8
berdirWrong version, 1.1 doesn't pass the tests...
Comment #9
berdir#5: trim_subject_body.patch queued for re-testing.
Comment #10
berdirComment #11
berdirCommited and fixed in all branches, thanks for reporting.
Comment #12
Michsk commentednp, sorry i couldn't help with creating the patch.