The default bug view has changed. See this FAQ.

Do not convert spaces to &nbsp; in <pre> blocks, as this breaks live examples

VERIFIED FIXED

Status

Mozilla Developer Network
Editing
VERIFIED FIXED
4 years ago
3 years ago

People

(Reporter: sheppy, Unassigned)

Tracking

Details

(Reporter)

Description

4 years ago
When editing inside <pre> blocks, spaces at the beginning of lines are inserted as &nbsp; instead of as a space. These break the live sample system, since &nbsp; isn't legal in CSS, for example. The best fix would be to make it not do &nbsp; in <pre> blocks like this.
Summary: Spaces to indent sample code are inserted as &nbsp; and breaks live samples → Do not convert spaces to &nbsp; in <pre> blocks, as this breaks live examples

Comment 1

4 years ago
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/f36cb4bd0503cba07dbde2eb105562dda6b02033
fix bug 811768 - Prevents nbsp;'s in PRE tags

https://github.com/mozilla/kuma/commit/05d2bfdaa99b8c657d9d524622c31c31deaf17d8
Merge pull request #705 from darkwing/pre-tabs-811768

fix bug 811768 - Prevents nbsp;'s in PRE tags

Updated

4 years ago
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
verified fixed https://developer.allizom.org/en-US/docs/WebSockets
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.