You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, thank you for maintaining html2text, it's great!
Right now, list items are always indented two spaces per enclosing list. This is generally right, but doesn't work for <ul>s nested inside <ol>s. Those need three spaces (at least) instead. Details here in the Common Mark spec.
I have a PR ready for this, I'll submit it in a minute.
First off, thank you for maintaining html2text, it's great!
Right now, list items are always indented two spaces per enclosing list. This is generally right, but doesn't work for
<ul>
s nested inside<ol>s
. Those need three spaces (at least) instead. Details here in the Common Mark spec.I have a PR ready for this, I'll submit it in a minute.
For example, this HTML:
needs to convert to this, with five spaces before
* unordered
instead of four:Tested against HEAD with multiple Python 3 versions.
The text was updated successfully, but these errors were encountered: