Skip to content
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

Remove stray unreadByte from isCDATA #14

Merged
merged 1 commit into from
Mar 26, 2020
Merged

Remove stray unreadByte from isCDATA #14

merged 1 commit into from
Mar 26, 2020

Conversation

imirkin
Copy link
Contributor

@imirkin imirkin commented Mar 26, 2020

The bytes are peeked rather than read, and unreading a byte after
peeking is a questionable thing to do in the first place. Go 1.12+ makes
this a no-op, however earlier versions of Go do move the cursor back.

This makes the library work with Go 1.11 and earlier after commit
00de614 ("Fix #8").

Fixes #13

The bytes are peeked rather than read, and unreading a byte after
peeking is a questionable thing to do in the first place. Go 1.12+ makes
this a no-op, however earlier versions of Go do move the cursor back.

This makes the library work with Go 1.11 and earlier after commit
00de614 ("Fix #8").

Fixes #13
@tamerh tamerh merged commit 9372584 into tamerh:master Mar 26, 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.

Can't get it to work? CDATA issue
2 participants