fixed example
This commit is contained in:
parent
50b9aa5431
commit
9ae8ddddca
BIN
docs/images/example_05_html_table_with_images.png
Normal file
BIN
docs/images/example_05_html_table_with_images.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
@ -27,9 +27,9 @@ sys.path.insert(0, str(Path(__file__).parent.parent))
|
|||||||
def create_book_catalog_html():
|
def create_book_catalog_html():
|
||||||
"""Create HTML for a book catalog table with actual <img> tags."""
|
"""Create HTML for a book catalog table with actual <img> tags."""
|
||||||
# Get base path for images - use absolute paths for the img src
|
# Get base path for images - use absolute paths for the img src
|
||||||
Path(__file__).parent.parent / "tests" / "data"
|
data_path = Path(__file__).parent.parent / "tests" / "data"
|
||||||
|
|
||||||
html = """
|
html = f"""
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<table>
|
<table>
|
||||||
@ -76,9 +76,9 @@ def create_book_catalog_html():
|
|||||||
|
|
||||||
def create_product_showcase_html():
|
def create_product_showcase_html():
|
||||||
"""Create HTML for a product showcase table with images."""
|
"""Create HTML for a product showcase table with images."""
|
||||||
Path(__file__).parent.parent / "tests" / "data"
|
data_path = Path(__file__).parent.parent / "tests" / "data"
|
||||||
|
|
||||||
html = """
|
html = f"""
|
||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<table>
|
<table>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user