You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 8, 2021. It is now read-only.
An output given by OPT parses has new lines replaced to spaces. It's ok in HTML templates, but is not in text/plain content type. Also, parser ignores special chars "\n" - they are treated as simple string.
I use text templates for text/plain emails body and there's no solution for get multi-line output without ugly workarounds in PHP like:
$mailText = $mailView->fetch(); // its my view object, it uses Opt_Output_Return to return parsed template$mailText = str_replace('\n', "\n", $mailText);
to replace '\n' inserted manually in template file to special chars.
Note, that for TXT templates I use QUIRKS_MODE and Opt_Output_Return
TIA for answer. :)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello. :)
An output given by OPT parses has new lines replaced to spaces. It's ok in HTML templates, but is not in text/plain content type. Also, parser ignores special chars "\n" - they are treated as simple string.
I use text templates for text/plain emails body and there's no solution for get multi-line output without ugly workarounds in PHP like:
to replace '\n' inserted manually in template file to special chars.
Note, that for TXT templates I use QUIRKS_MODE and Opt_Output_Return
TIA for answer. :)
The text was updated successfully, but these errors were encountered: