Skip to content

Non-breaking spaces behaving weird in editor #18444

@dylankiss

Description

@dylankiss

Describe the issue

After upgrading to 5.16.2, the highlighting was fixed in the translation editor, but it now seems to behave weird with (non-breaking) spaces next to the tags used. See the video below.

Recording.49.mp4

It looks like the translation uses non-breaking spaces, even though the history entry does not show it. But when clicking in the textarea, there is overlapping text that is slightly off. Not sure what is happening here.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

  1. Go to a translation that has an HTML tag (highlighted) and a non-breaking space between the tag and other text.
  2. Click inside the editor field.
  3. See that the text next to the space gets superposed, but slightly off.

Expected behavior

The text remains as is and readable.

Screenshots

No response

Exception traceback

How do you run Weblate?

Docker container

Weblate versions

5.16.2

Weblate deploy checks

Additional context

No response

Metadata

Metadata

Assignees

Labels

Waiting for: ImplementationAdded to a milestone, will be resolved according to the milestone timeline.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions