Skip to content

Commit 42efea2

Browse files
committed
formatting
1 parent c3da3ff commit 42efea2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/html/test_html.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,8 @@ def test_html_bad_font():
510510
pdf.add_page()
511511
pdf.set_font("times", size=18)
512512
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+
516515

517516
def test_html_ln_outside_p(tmp_path):
518517
# Edge case. The <li> must come right after the </p> without anything
@@ -521,8 +520,8 @@ def test_html_ln_outside_p(tmp_path):
521520
pdf.add_page()
522521
pdf.set_font("times", size=18)
523522
pdf.write_html(
524-
"""
523+
"""
525524
<p>someting in paragraph</p><li>causing _ln() outside paragraph</li>
526525
"""
527-
)
526+
)
528527
assert_pdf_equal(pdf, HERE / "html_ln_outside_p.pdf", tmp_path)

0 commit comments

Comments
 (0)