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

New lines in content type TXT #2

@cookie-at-zeno-pl

Description

@cookie-at-zeno-pl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions