I am sending the mails with
...

print ($email['html'] ? '<p>' : '') ."<h3>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</h3>"  . ($email['html'] ? '</p>' : '');

in webform-mail.tpl.php

I get f.e :"Lo rem ipsum dolor sit amet, consectetuer adipiscing elit."
with white space in Lorem

acitated updated Modules:
Mail System 7.x-2.34
HTML Mail 7.x-2.65
Email verify 7.x-1.x-dev
Webform 7.x-4.0-rc1
Webform Validation 7.x-1.5

...

Comments

quicksketch’s picture

Issue summary: View changes
quicksketch’s picture

Title: unwanted white space in mails » Unwanted white space in themed mails
Category: Bug report » Support request

Moving this to a support request, since it only occurs when doing custom theming. This may be caused by the existing issue at #2155413: Line breaks in the middle of fields in the E-mail message, where Webform is attempting to wrap long lines of text. To work-around this problem, you might try adding a new line "\n" before and after your added strings.

quicksketch’s picture

Hmm, on further thought, I can't see how this would be related to #2155413: Line breaks in the middle of fields in the E-mail message, since apparently you're working with HTML e-mails, but that other issue is for plain-text only. I'm still inclined to think they might be related, but it's hard to tell with the amount of information given.

etron770’s picture

can you tell me which further information do you would expect?

additionally information:
The spaces are at different locations, but always at the same location when resending the email.

I just realized that some lines (without <p>) were formatted with

print ($email['html'] ? '' : '') ."<h3>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</h3>"  

means the

. ($email['html'] ? '' : '');

was missing.
I will report after a couple webform submissions if the problem is solved

etron770’s picture

No, this was no causing the error ... the problem still exists

quicksketch’s picture

Hm, I really don't have any idea what could be causing this. My only remaining suspicions would be around HTML Mail or the way the mails are being sent, because I don't think Webform does any formatting that would create white spaces like this in the e-mails.

DanChadwick’s picture

Status: Active » Fixed

Marking this as fixed. Please re-open if you can provide additional information to the maintainers.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.