Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Use white-space: pre-wrap instead of using for spaces | VisualEditor/VisualEditor | master | +15 -74 |
Details
- Reference
- bz53931
Event Timeline
From an email conversation I had with Aryeh in January 2012:
(Since I'm thinking about canonicalization of whitespace, a tip: set
white-space: pre-wrap on any contenteditable regions you use, and
wherever you use them. This will stop you from needing to use nbsp's
in ways they were never intended to be used, which causes a variety of
subtle bugs. See
http://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#canonical-space-sequences
for a basic explanation, and click the first "View Comments" at
http://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#the-inserttext-command
for a more detailed explanation of how nbsp substitution works in
practice.)
Still valid:
./src/ce/nodes/ve.ce.TextNode.js: // Replace spaces with where needed
Change 255931 had a related patch set uploaded (by Bartosz Dziewoński):
Use white-space: pre-wrap instead of using for spaces
Change 255931 merged by jenkins-bot:
Use white-space: pre-wrap instead of using for spaces