0

In the order confirmation email template i have set Word Wrapping to "on" and Email Formatting to "Plain Text".

however inside this template with:

{exp:channel:entries entry_id="{entry_id}" show_future_entries="yes"}
{matrix_field}
{matrix_field_col_name}.
{/matrix_field}
{/exp:channel:entries}

i get:

matrix_field_col_content_1.matrix_field_col_content_2.matrix_field_col_content_3.

but it should be:

matrix_field_col_content_1.
matrix_field_col_content_2.
matrix_field_col_content_3.

1 Answer 1

0

As you're inside a matrix field it is simply spitting them out in one line so it is working as expected. The word-wrap function is not being triggered because it's one long word.

To have your items output to a new line, simply add \r\n immediately after the '.'

2
  • unfortunately this outputs rn and not a new line. May 3, 2016 at 20:06
  • In that case place a carriage return in your code after the . May 4, 2016 at 1:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.