digitalfabrik/integreat-cms

DeepL bug at links with non-breaking space

Opened this issue · 0 comments

Describe the Bug

DeepL messes up links when they are only followed by a non-breaking space (character code 160) in the paragraph.

Steps to Reproduce

  1. Go to a source translation
  2. Add a paragraph containing <a class="link-external" href="mailto:turnverein-dillenburg@t-online.de">turnverein-dillenburg@t-online.de</a> (with the last character being a non-breaking space)
  3. Save the translation
  4. Translate it to another language

Expected Behavior

Translation contains the link, with the link text translated, like

<a class="link-external" href="mailto:turnverein-dillenburg@t-online.de">turnverein-dillenburg@t-online.de</a> 

Actual Behavior

Something like

t <a class="link-external" href="mailto:turnverein-dillenburg@t-online.de">urnvere</a> in-dillenburg@t-online.de