Closed Bug 1884722 Opened 8 months ago Closed 8 months ago

Translating a specific page removes some whitespaces between words

Categories

(Firefox :: Translations, defect)

defect

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: marco, Assigned: gregtatum)

References

()

Details

Attachments

(1 file)

Translating https://en.wikipedia.org/w/index.php?title=Catalan_language&oldid=1212864729 from English to Italian (or Catalan) removes whitespaces between some words.

E.g. It is the official language of Andorra becomes És la llengua oficial deAndorra.

Severity: -- → S3

There is a bug in the inline vs block logic. Here is a minimal STR:

      <p>
        This is some text.
        <span>It has inline elements</span>
        <style>/* And display none elements */</style>
      </p>

The style element is display: none, which is breaking the logic, and sending elements in as block elements rather than inline. This strips out the whitespace.

Assignee: nobody → gtatum
Status: NEW → ASSIGNED

The fix should improve translation quality as well, since it was sending each inline element in as a single sentence, rather than grouping it together.

Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fe335b10fd54 Fix the translations block subdividing for display none; r=translations-reviewers,nordzilla
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
No longer blocks: 1838721
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: