Skip to content

Fixs #93#103

Merged
trullock merged 3 commits into
trullock:masterfrom
life777:trim-spaces-bug
Jun 8, 2020
Merged

Fixs #93#103
trullock merged 3 commits into
trullock:masterfrom
life777:trim-spaces-bug

Conversation

@life777
Copy link
Copy Markdown
Contributor

@life777 life777 commented Jun 7, 2020

Fixes #93

Fix is simple, if we current node requires preserving formatting inside it (like "textarea" or "pre" tags) we have to clear all pending text nodes before we start working with this tag. If we don't do it before, pendingTagNonCollapsibleWithSpaces variable will be not 0 and pending text nodes won't be cleared in TrimNodeOnEnd -> TrimPendingTextNodes.

Thanks

@trullock trullock merged commit 73df3df into trullock:master Jun 8, 2020
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.

New line and spaces preserved before textarea elements

2 participants