diff --git a/docs/images/example_05_html_table_with_images.png b/docs/images/example_05_html_table_with_images.png new file mode 100644 index 0000000..3384603 Binary files /dev/null and b/docs/images/example_05_html_table_with_images.png differ diff --git a/examples/05_html_table_with_images.py b/examples/05_html_table_with_images.py index 30e89eb..39231a1 100644 --- a/examples/05_html_table_with_images.py +++ b/examples/05_html_table_with_images.py @@ -27,9 +27,9 @@ sys.path.insert(0, str(Path(__file__).parent.parent)) def create_book_catalog_html(): """Create HTML for a book catalog table with actual tags.""" # 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""" @@ -76,9 +76,9 @@ def create_book_catalog_html(): def create_product_showcase_html(): """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"""