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

Add inline_style option #180

Merged
merged 2 commits into from Jul 24, 2016
Merged

Add inline_style option #180

merged 2 commits into from Jul 24, 2016

Conversation

@chripede
Copy link
Contributor

@chripede chripede commented Nov 19, 2015

Currently the style option will remove both style tags and attributes.
This change makes each an option, just like scripts and javascript.

Currently the style option will remove both style tags and attributes. 
This change makes each an option, just like scripts and javascript.
@scoder
Copy link
Member

@scoder scoder commented Nov 19, 2015

This breaks both the API and a test. And it adds a new option without testing it. No way I can accept that.

@chripede
Copy link
Contributor Author

@chripede chripede commented Nov 20, 2015

Was in a hurry and forgot the tests. I fixed the broken one and added a new one.

@scoder
Copy link
Member

@scoder scoder commented Nov 20, 2015

It still breaks the API, though. If you want a new option for such a special case, it shouldn't break all code out there. It should just be a new option.

@chripede
Copy link
Contributor Author

@chripede chripede commented Dec 4, 2015

So in order to not break the API, should I move the inline_style into the style and default inline_style to True?

@scoder scoder merged commit 0a43d0b into lxml:master Jul 24, 2016
1 check passed
@scoder
Copy link
Member

@scoder scoder commented Jul 24, 2016

I think they should be separate options where the new one falls back to the old one if not provided. d3b73e5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants