Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make bodywidth kwarg overridable using config
Default values for arguments are evaluated at import time. This makes a problem when using html2text the following way: import html2text # The default value is evaluated here html2text.config.BODY_WIDTH = 0 text = html2text.html2text(html) It is thus necessary to wait until the function runs to fetch the actual configuration value.
- Loading branch information