Commit 42efea2 1 parent c3da3ff commit 42efea2 Copy full SHA for 42efea2
File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -510,9 +510,8 @@ def test_html_bad_font():
510
510
pdf .add_page ()
511
511
pdf .set_font ("times" , size = 18 )
512
512
with pytest .raises (FPDFException ):
513
- pdf .write_html (
514
- """<font face="no_such_font"><p>hello helvetica</p></font>"""
515
- )
513
+ pdf .write_html ("""<font face="no_such_font"><p>hello helvetica</p></font>""" )
514
+
516
515
517
516
def test_html_ln_outside_p (tmp_path ):
518
517
# Edge case. The <li> must come right after the </p> without anything
@@ -521,8 +520,8 @@ def test_html_ln_outside_p(tmp_path):
521
520
pdf .add_page ()
522
521
pdf .set_font ("times" , size = 18 )
523
522
pdf .write_html (
524
- """
523
+ """
525
524
<p>someting in paragraph</p><li>causing _ln() outside paragraph</li>
526
525
"""
527
- )
526
+ )
528
527
assert_pdf_equal (pdf , HERE / "html_ln_outside_p.pdf" , tmp_path )
You can’t perform that action at this time.
0 commit comments