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

Fix: ignore preformatted tokens in html-indent #659

Merged
merged 6 commits into from
Nov 24, 2018
Merged

Fix: ignore preformatted tokens in html-indent #659

merged 6 commits into from
Nov 24, 2018

Conversation

ota-meshi
Copy link
Member

@ota-meshi ota-meshi commented Nov 13, 2018

This PR is for fix the issue #653.

I stored tokens in the <pre> element, and excluded those tokens from validation.

--
Fixed #653

The cause of this issue was due to side effects of #503.

@ota-meshi
Copy link
Member Author

I thought about fixing with few changes, but because I could not solve the problem of become invalid with other patterns, I solved it with logic of this PR.

Copy link
Member

@michalsnik michalsnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍

@michalsnik
Copy link
Member

@mysticatea can you re-check pls? :)

@mysticatea
Copy link
Member

I will take a look. Thank you for the ping.

Copy link
Member

@mysticatea mysticatea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All concerns I had are resolved.

LGTM, thank you so much!

@mysticatea
Copy link
Member

Just I have found, <textarea> has the same matter as <pre>.

@ota-meshi
Copy link
Member Author

Do I need to change the processing of <textarea> with this PR?

@mysticatea
Copy link
Member

Probably, separated PR is better.
I will merge this PR.

@mysticatea mysticatea merged commit 78bd936 into master Nov 24, 2018
@mysticatea mysticatea deleted the issue653 branch November 24, 2018 13:36
@ota-meshi
Copy link
Member Author

@mysticatea Thank you for merged this PR!
I will begin the work related to <textarea> after #676 has been merged.

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.

Indent inside pre tag incorrectly applied
3 participants