Skip to content

HTML formatting in templates is removed after saving when no template logic is used #175

@MeisterAdebar

Description

@MeisterAdebar

Hi,

when editing an email template in Fewohbee, HTML formatting (line breaks and indentation) is preserved after saving only if template logic is present (e.g. data-repeat or Twig expressions like {{ ... }}).

If the same template contains pure static HTML only, the formatting is removed after saving. When reopening the template, the entire HTML code appears in a single line.

I would like to create a copy template that only contains the signature and HTML.
Is there a trick to preserve the formatting.

<div style="height:16px;"> </div>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt;">
Mit freundlichem Gruß
</p>
<p style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt;">
Bli Bla<br>
</p>
<div style="height:24px;"> </div>
<table cellpadding="0" cellspacing="0" style="font-family: Arial, Helvetica, sans-serif; font-size: 11pt;">
  <tr>
    <td style="padding-right:25px; vertical-align:top;">
      Hotel Muster<br>
      Musterstr. 8<br>
      D-56789 Musterstadt
    </td>

    <td style="padding-right:25px; vertical-align:top;">
      Telefon: <a href="tel:+49123456789" style="color:#000000; text-decoration:none;">01234 5678</a><br>
      Telefax: 01234 567890<br>
      Mobil: <a href="tel:+4901234567899" style="color:#000000; text-decoration:none;">0123 4567899</a>
    </td>

    <td style="vertical-align:top;">
      E-Mail: <a href="mailto:info@musterhotel.de" style="color:#000000; text-decoration:none;">info@musterhotel.de</a><br>
      Internet: <a href="https://www.musterhotel.de" style="color:#000000; text-decoration:none;">www.musterhotel.de</a><br>
      USt-IdNr.: DE12345678
    </td>
  </tr>
</table>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions