-
Notifications
You must be signed in to change notification settings - Fork 237
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 incorrect missing of trimming all-space text events when trim_text_start = false
and trim_text_end = true
#755
Commits on Jun 14, 2024
-
Remove unnecessary code block in
read_bytes_until
(Review in whitespace changes ignored mode)
Configuration menu - View commit details
-
Copy full SHA for 1de2c8f - Browse repository at this point
Copy the full SHA 1de2c8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 77b8212 - Browse repository at this point
Copy the full SHA 77b8212View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2032c1f - Browse repository at this point
Copy the full SHA 2032c1fView commit details -
Remove duplicated code - go to the ClosedTag state and perform operat…
…ion in next iteration of loop
Configuration menu - View commit details
-
Copy full SHA for a52874b - Browse repository at this point
Copy the full SHA a52874bView commit details -
Introduce
read_text
- a copy ofread_bytes_until
with hardcoded `……byte` parameter to b'<'
Configuration menu - View commit details
-
Copy full SHA for 03d4081 - Browse repository at this point
Copy the full SHA 03d4081View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37bb597 - Browse repository at this point
Copy the full SHA 37bb597View commit details -
(Review in whitespace changes ignored mode)
Configuration menu - View commit details
-
Copy full SHA for 01ce06f - Browse repository at this point
Copy the full SHA 01ce06fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 955658f - Browse repository at this point
Copy the full SHA 955658fView commit details -
Go to Exit state immediately after receiving Eof when reading text
Previously we stay in ClosedTag state and after reaching EOF in it in next read_event make two XmlSource calls that
Configuration menu - View commit details
-
Copy full SHA for 0941f08 - Browse repository at this point
Copy the full SHA 0941f08View commit details -
Rename some internal ParseStates for clarity:
- OpenedTag -> InsideMarkup - ClosedTag -> InsideText - Empty -> InsideEmpty - Exit -> Done
Configuration menu - View commit details
-
Copy full SHA for 306b042 - Browse repository at this point
Copy the full SHA 306b042View commit details -
Configuration menu - View commit details
-
Copy full SHA for 573df5e - Browse repository at this point
Copy the full SHA 573df5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31177ec - Browse repository at this point
Copy the full SHA 31177ecView commit details -
Fix incorrect missing of trimming all-space text events when trim_tex…
…t_start = false and trim_text_end = true This is still not complete fix, because we will generate empty Event::Text although we should not do that, but it is hard to prevent generation of such event. Moreover it would be better to remove ability of automatic trimming completely, because it is anyway does not work correctly -- events should not be trimmed at boundary of text / CDATA, or text / PI, or text / comment in some cases
Configuration menu - View commit details
-
Copy full SHA for 7558577 - Browse repository at this point
Copy the full SHA 7558577View commit details