summaryrefslogtreecommitdiff
path: root/bs4/formatter.py
AgeCommit message (Collapse)Author
2024-01-16Correct issues with a docstring. [bug=2016190]Leonard Richardson
2023-03-24Using a format string is very slightly slower than just adding all the bits ↵Leonard Richardson
of the string together.
2023-01-25The HTMLFormatter and XMLFormatter constructors no longer return aLeonard Richardson
value. [bug=1992693]
2021-12-21It's now possible to customize the way output is indented byLeonard Richardson
providing a value for the 'indent' argument to the Formatter constructor. The 'indent' argument works very similarly to the argument of the same name in the Python standard library's json.dump() method. [bug=1955497]
2021-09-07Goodbye, Python 2. [bug=1942919]Leonard Richardson
2021-02-14The 'html5' formatter now treats attributes whose values are theLeonard Richardson
empty string as HTML boolean attributes. Previously (and in other formatters), an attribute value must be set as None to be treated as a boolean attribute. In a future release, I plan to also give this behavior to the 'html' formatter. Patch by Isaac Muse. [bug=1915424]
2019-12-29Fixed an unhandled exception when formatting a Tag that had been ↵Leonard Richardson
decomposed.[bug=1857767]
2019-12-24Added docstrings to diagnose.py.Leonard Richardson
2019-12-24Wrote docstrings for formatter.py.Leonard Richardson
2019-07-15Moved the formatter to its own class and updated its documentation.Leonard Richardson