Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Multiple spaces are removed by email library from plain-text #1938

Closed
GDmac opened this Issue · 0 comments

2 participants

@GDmac

The word_wrap method from the email library removes multiple spaces from the body text.
https://github.com/EllisLab/CodeIgniter/blob/develop/system/libraries/Email.php#L796

This makes it difficult to send messages with pre-formatted text:

Name       : {name}
Telephone  : {telephone}
Region     : {region}  

Regards,
Your Webserver

An alternative might be to only trim leftover spaces on the right-side of the line
$str = preg_replace("# +(\r\n|\r|\n)#", "\\1", $str);'.
I don't know if this would leave a lot of whitespace for the automatic alt_body for html-messages.

@GDmac GDmac referenced this issue from a commit in GDmac/CodeIgniter
@GDmac GDmac Description for Fix #1938 added to changelog
Signed-off-by: GDmac <grdalenoort@gmail.com>
7330384
@GDmac GDmac referenced this issue from a commit in GDmac/CodeIgniter
@GDmac GDmac Description for Fix #1938 added to changelog (sync)
Conflicts:
	user_guide_src/source/changelog.rst

Signed-off-by: GDmac <grdalenoort@gmail.com>
e1e956d
@narfbg narfbg closed this issue from a commit
@GDmac GDmac Fix #1938
Where the email library removed multiple spaces inside a plain text message.

Signed-off-by: GDmac <grdalenoort@gmail.com>
9bea4be
@narfbg narfbg closed this in 9bea4be
@nonchip nonchip referenced this issue from a commit in nonchip/CodeIgniter
@GDmac GDmac Fix #1938
Where the email library removed multiple spaces inside a plain text message.

Signed-off-by: GDmac <grdalenoort@gmail.com>
51dc234
@nonchip nonchip referenced this issue from a commit in nonchip/CodeIgniter
@GDmac GDmac Description for Fix #1938 added to changelog
Signed-off-by: GDmac <grdalenoort@gmail.com>
f9cc315
@nonchip nonchip referenced this issue from a commit in nonchip/CodeIgniter
@GDmac GDmac Description for Fix #1938 added to changelog (sync)
Conflicts:
	user_guide_src/source/changelog.rst

Signed-off-by: GDmac <grdalenoort@gmail.com>
9afd3ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.