LePatron.email icon indicating copy to clipboard operation
LePatron.email copied to clipboard

Unwanted line break with Chrome and Edge

Open the2ne opened this issue 2 years ago • 0 comments

Since the last updates of browsers using the Chromium rendering engine a nasty bug appeared in our email builder.

Browsers concerned

As said before, it only occurs on browsers using Chromium (Google Chrome and Microsoft Edge since their last version 95.0.XXX). No problem with Webkit (Apple Safari) or Gekko (Mozilla Firefox).

Action that generates the line break bug

When editing text in a block, when we want to make a line break (press " entry"), we do see the return to the line, but it is greater than expected.

Indeed, there is a much larger than expected and undesirable gap. This is a <br> and it disappears if you start typing.

However, if you finally want to delete this new line of entered text, this space produced by the <br> unwanted appears again!

bug-chromium

An overview of the bug and how to work around it

Indeed, if you delete all the text contained in the block, you will end up with only the unwanted line break. Now if you type in your content again, the bug disappears like magic!

the2ne avatar Nov 04 '21 16:11 the2ne