Skip to content

Parse nbsp into spaces, render nbsp where needed#209

Merged
mixonic merged 1 commit into
bustle:masterfrom
mixonic:one-word
Nov 3, 2015
Merged

Parse nbsp into spaces, render nbsp where needed#209
mixonic merged 1 commit into
bustle:masterfrom
mixonic:one-word

Conversation

@mixonic
Copy link
Copy Markdown
Contributor

@mixonic mixonic commented Nov 3, 2015

  • Mobiledoc should, ideally, not contain any HTML entities. Instead these should be converted into their property plain text pair. This changes the parsing code to disallow nbsp chars, instead converting them into regular spaces.
  • The Content-Kit renderer must display spaces correctly when there are multiple spaces in a row. This patch ensures that at least every other space character is displayed as an nbsp.

Fixes #195

* Mobiledoc should, ideally, not contain any HTML entities. Instead
  these should be converted into their property plain text pair. This
  changes the parsing code to disallow nbsp chars, instead converting
  them into regular spaces.
* The Content-Kit renderer must display spaces correctly when there are
  multiple spaces in a row. This patch ensures that at least every other
  space character is displayed as an nbsp.

Fixes bustle#195
mixonic added a commit that referenced this pull request Nov 3, 2015
Parse nbsp into spaces, render nbsp where needed
@mixonic mixonic merged commit 061ca48 into bustle:master Nov 3, 2015
@mixonic mixonic deleted the one-word branch November 3, 2015 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant