You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
trim_text_end still emits an empty Text event for whitespace-only text before a tag #984
Config::trim_text_end's documentation says: "When set to true, trailing whitespace is trimmed in Text events. If after that the event is empty it will not be pushed." Here the leading space is whitespace-only text preceding <a/>, and trim_text_end is set, but the reader still emits a Text("") event before the Empty event.
(#755 fixed a related all-space-trimming case in 0.33.0; this leading-space-before-a-self-closing-tag case still reproduces.)
Tested on quick-xml 0.41.0.
BTW, this bug was found using hegel. Happy to contribute the tests if you're interested.
Activity
Fix empty Text event emitted with trim_text_end (tafia#984)
Fix empty Text event emitted with trim_text_end (tafia#984)
Fix empty Text event emitted with trim_text_end (tafia#984)
Document known issues with trim_text_start and trim_text_end
Document known issues with trim_text_start and trim_text_end