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

is_whitespace for loop incrementing wrong variable #777

Merged
merged 1 commit into from
Nov 10, 2015

Conversation

ephox-luke
Copy link
Contributor

Without this fix is_whitespace only ever checks the first character. Called when the first token is text content; If that token has leading whitespace the whole token is ignored (content loss). Bug not present in python implementation.

Without this fix is_whitespace only ever checks the first character. Called when the first token is text content; If that token has leading whitespace the whole token is ignored (content loss).
@bitwiseman
Copy link
Member

Thanks!

bitwiseman added a commit that referenced this pull request Nov 10, 2015
is_whitespace for loop incrementing wrong variable
@bitwiseman bitwiseman merged commit d31e205 into beautifier:master Nov 10, 2015
@bitwiseman bitwiseman added this to the v1.6.0 milestone Nov 12, 2015
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.

2 participants