Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Builtin-plugins: stop wrapping whitespace text nodes #458

Merged
merged 3 commits into from
Mar 16, 2016

Conversation

rrees
Copy link
Contributor

@rrees rrees commented Mar 13, 2016

Issue #456 revealed some strange behaviour that is normally masked by the use of the Sanitizer plugin (hence the addition of a test page that is minimal in terms of plugins). This turned out to be because we were wrapping text nodes that had no content.

To fix the issue these nodes are currently ignore in the wrapping process but it would probably be better to delete them from the content.

Testing

The easiest way I've found to have this be repeatable is to change the default content to contain some indented paragraphs. If you then bold any word in the content all the whitespace becomes wrapped in a paragraph creating noticeable changes to the visual spacing.

Robert Rees added 3 commits March 13, 2016 17:10
Issue #456 revealed some strange behaviour that is normally masked by the use of the Sanitizer plugin (hence the addition of a test page that is minimal in terms of plugins). This turned out to be because we were wrapping text nodes that had no content.

To fix the issue these nodes are currently ignore in the wrapping process but it would probably be better to delete them from the content.

The easiest way I've found to have this be repeatable is to change the default content to contain some indented paragraphs. If you then bold any word in the content all the whitespace becomes wrapped in a paragraph creating noticeable changes to the visual spacing.
rrees added a commit that referenced this pull request Mar 16, 2016
Builtin-plugins: stop wrapping whitespace text nodes
@rrees rrees merged commit aa3eb28 into master Mar 16, 2016
@rrees rrees deleted the rr-fix-wrapping-empty-nodes branch March 16, 2016 17:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants