Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix: ignore preformatted tokens in html-indent #659

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

Merged
mysticatea merged 6 commits into master from issue653
Nov 24, 2018
Merged

Fix: ignore preformatted tokens in html-indent #659

mysticatea merged 6 commits into master from issue653
Nov 24, 2018

Conversation

Copy link
Member

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

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.

aldarund reacted with thumbs up emoji
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
edited
Loading

Choose a reason for hiding this comment

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

Good job 👍

Copy link
Member

@mysticatea can you re-check pls? :)

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!

Copy link
Member

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

Copy link
Member Author

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

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
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
Reviewers
2 more reviewers

@mysticatea mysticatea mysticatea approved these changes

@michalsnik michalsnik michalsnik approved these changes

Reviewers whose approvals may not affect merge requirements
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Indent inside pre tag incorrectly applied

AltStyle によって変換されたページ (->オリジナル) /