Closed stephenmcd closed 12 years ago
I've also moved the __main__
code into a main() function that can be referenced as an entrypoint script. This means when installed, you can just run the command "html2text" system-wide. Sorry about not using separate branches.
My use-case is piping unicode output from another program into html2text, however there's currently no way to provide an encoding when read from stdin. I've made utf-8 the default encoding.
Seems reasonable. Did you run the automated tests?
Yep they all pass. What do you think about the encoding change for reading stdin? My first thought was to rearrange the options to make encoding a named option so that you could specify the encoding type when reading stdin, but that would mean changing the existing api.
Having utf8 as the default sounds right to me.
Alright then. Thanks for the merge :-)
The teletype tag is used to represent text with a fixed-width font. This change adds it to the tags that are converted to inline code.