Trying to create some email templates - when I use a text block and type normal text it wraps it in <div> tags instead of <p> which the old editor used.
This is good for Outlook emails, since adding a linebreak between “paragraphs” adds a
which Outlook seems to honour and saves having to do the old manual trick of adding
after each <p> tag within a block.
Some of these templates we need to send from our internal system - but when I export the HTML it is removing the non-breaking space ( ) from between the <divs> - this means all paragraphs are squished together.
eg: In a text block I type:
Viewing the code it is:
But when I export, it becomes:
Can you please advise how to export so it doesn’t remove the code.
Or alternatively, why the text block is using <div> instead of <p> tags?
And is there any way to make the context editor wider? It is difficult to work on long text in that small window area.
Best answer by MarkGView original
I tried changing all the <div> </div> to <br /> instead, but the editor just changes them back to <div> </div>.
Through trial an error I’ve discovered if you wrap the entired text block in another <div> and replace all the <div> </div> with <br /> the exporter leaves it alone.
But this is all very manual and tedious.
Hopefully I’m missing something obvious, or Klaviyo can fix this behaviour.
Thanks for sharing your question with us!
This is definitely not expected behavior. I am going to share this with our engineers and will get back to you when we have more insight.
Thanks for participating in the Community!
@Taylor Tarpley ,
We’ve also discovered that the exporter turns entities such as ® into encoded ®, which is creating alot of re-work for us.