Closed
Bug 1884722
Opened 8 months ago
Closed 8 months ago
Translating a specific page removes some whitespaces between words
Categories
(Firefox :: Translations, defect)
Firefox
Translations
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
.
Assignee | ||
Updated•8 months ago
|
Severity: -- → S3
Assignee | ||
Comment 1•8 months ago
•
|
||
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 | ||
Comment 2•8 months ago
|
||
Updated•8 months ago
|
Assignee: nobody → gtatum
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•8 months ago
|
||
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
Comment 5•8 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
status-firefox125:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•