-
-
Notifications
You must be signed in to change notification settings - Fork 134
fix: trim only when necessary if trimming is off #394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: trim only when necessary if trimming is off #394
Conversation
Codecov Report
@@ Coverage Diff @@
## master #394 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 8
Lines 158 162 +4
Branches 55 54 -1
=========================================
+ Hits 158 162 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left comments
Thank you! I've resolved the ones I've fixed and replied to your other comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Will you be updating docs @vidhu?
Yes! Just pushed out a commit to update the docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left comments
f5af355
to
4126592
Compare
Thank you @remarkablemark I've addressed your requested changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good @vidhu!
Released in #395 (comment) |
Thank you! Pleasure working with you :) |
Same here! @vidhu If you're ever interested in being a maintainer for |
Thank you. I would be interested in that. Do you use any instant messaging platform like discord? |
Yes! We have a Discord server, feel free to DM me once you join |
Fixes #384
What is the motivation for this pull request?
Fixes an issue #384 where trimming can lead to inaccurate parsing when nodes have whitespace characters
What is the current behavior?
What is the new behavior?
Regardless of the trimming setting, if a text node appears in a node that can contain text nodes eg
<table>
,<tr>
, it will be removed. If trimming is off, then whitespaces are preserved in nodes that can contain text nodes.Checklist:
Looking for approvals before I add to documentation!