Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
quicksketchComment #2
quicksketchMoving 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.
Comment #3
quicksketchHmm, 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.
Comment #4
etron770 CreditAttribution: etron770 commentedcan 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 withmeans the
was missing.
I will report after a couple webform submissions if the problem is solved
Comment #5
etron770 CreditAttribution: etron770 commentedNo, this was no causing the error ... the problem still exists
Comment #6
quicksketchHm, 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.
Comment #7
DanChadwick CreditAttribution: DanChadwick commentedMarking this as fixed. Please re-open if you can provide additional information to the maintainers.