Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

New lines in content type TXT #2

Open
cookie-at-zeno-pl opened this issue Aug 16, 2011 · 0 comments
Open

New lines in content type TXT #2

cookie-at-zeno-pl opened this issue Aug 16, 2011 · 0 comments

Comments

@cookie-at-zeno-pl
Copy link

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:

$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. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant