-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 88e0b49 Author: arjoonn sharma <arjoonn.94@gmail.com> Date: Tue Jun 22 22:14:44 2021 +0530 fix newline bug commit 820b779 Author: arjoonn sharma <arjoonn.94@gmail.com> Date: Tue Jun 22 21:32:44 2021 +0530 add failing test
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import html2text | ||
|
||
# See https://github.com/Alir3z4/html2text/issues/163 for more information. | ||
|
||
|
||
def test_newline_on_multiple_calls(): | ||
h = html2text.HTML2Text() | ||
html = "<p>test</p>" | ||
md1 = h.handle(html) | ||
md2 = h.handle(html) | ||
md3 = h.handle(html) | ||
assert md1 == md2 == md3 |