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

update setup.py and fix #95: don't add slashes to void elements #136

Closed
wants to merge 2 commits into from

Conversation

sknebel
Copy link
Member

@sknebel sknebel commented Oct 2, 2018

combined with setup.py since it relies on features new to BS4.

Beautifulsoup 4.6.2 introduced the ability to control the slashes in void elements through formatters.
This adds a formatter that does this, but otherwise only does minimal encoding (as the previous, default, formatter did)
@sknebel sknebel changed the title update setup.py and fix 95: don't add slashes to void elements update setup.py and fix #95: don't add slashes to void elements Oct 2, 2018
@sknebel
Copy link
Member Author

sknebel commented Oct 5, 2018

concern with this: might break granary: #95 (comment)

@sknebel
Copy link
Member Author

sknebel commented Nov 7, 2018

per further discussion in #95, granary can handle this by changing to html format in the Atom feeds

Copy link
Member

@tantek tantek left a comment

Choose a reason for hiding this comment

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

As much as I understand Python, this looks good to me.

@tantek tantek requested a review from snarfed May 2, 2020 01:48
@tantek tantek requested a review from kevinmarks May 21, 2020 22:26
@kartikprabhu
Copy link
Member

kartikprabhu commented May 22, 2020

looks good to me. Might want to add some tests for this so that we can track any future changes to the code base.

@fluffy-critter
Copy link

Is there a reason why the MinimalHtmlFormatter uses class variables for configuration instead of instance variables assigned on __init__? And shouldn’t the subclass use __init__ regardless?

@fluffy-critter
Copy link

Also: From the BeautifulSoup documentation it looks like they already provide an HTML5 formatter which you get by passing the string"html5" to the formatter parameter

@snarfed snarfed removed their request for review August 2, 2021 16:54
@sknebel sknebel closed this Jun 29, 2023
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.

4 participants