Closed Bug 1532147 Opened 6 years ago Closed 6 years ago

Code blocks in localization source are not respecting white spaces

Categories

(developer.mozilla.org Graveyard :: Localization, enhancement, P1)

All
Other
enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: urty5656, Unassigned)

References

Details

(Keywords: in-triage, Whiteboard: [specification][type:bug])

What did you do?

1. Enter any English document with <pre>, such as https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
2. Change to any locale, such as French
3. Click "Edit"(in its locale) button

What happened?

Translation source(English) document's codes inside <pre> is not rendering white spaces(line breaks, multiple spaces) properly.

What should have happened?

Both <pre> blocks render identically.

Is there anything else we should know?

Summary: Code blocks in translation source is not respecting white spaces → Code blocks in localization source are not respecting white spaces

Fix is in https://github.com/mozilla/kuma/pull/5281 (thanks alattalatta!). This appears to be caused by the Prism 1.15 update.

Blocks: 1520004
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: in-triage
Priority: -- → P1

The fix is in production, whitespace in the translation editor looks sane again. Thanks for the reports and fixes!

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.