From 3224295871a6600508def5294b2d91ebc396ec5d Mon Sep 17 00:00:00 2001 From: Torsten Ueberschar Date: Sun, 18 Feb 2024 20:39:09 +0100 Subject: [PATCH] use path ... but still todo: set as base path to invoide.yaml --- src/main.py | 2 ++ test_data/envelope.yaml | 2 +- test_data/templates/invoice.html | 9 +++++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main.py b/src/main.py index cf5f6c0..b43adf8 100644 --- a/src/main.py +++ b/src/main.py @@ -119,6 +119,8 @@ def main(): generator = html_generator.HtmlTemplate(args.template) template = generator.prepare_template(invoice_data, envelope_data) + print(template) + try: print('Generating invoice...') invoice_pdf = Path(invoice_data.Id).with_suffix('.pdf') diff --git a/test_data/envelope.yaml b/test_data/envelope.yaml index 008cead..34a6da7 100644 --- a/test_data/envelope.yaml +++ b/test_data/envelope.yaml @@ -3,7 +3,7 @@ AddressContent: AddressBoxSender: "Abs.: Torsten Ueberschar - Pfarrweg 1 - 57439 Attendorn" Contents: - Text: | - ![logo](test_data/templates/images/logo.svg) + ![logo](images/logo.svg) Torsten Ueberschar Pfarrweg 1 57439 Attendorn diff --git a/test_data/templates/invoice.html b/test_data/templates/invoice.html index 3330a05..25053cf 100644 --- a/test_data/templates/invoice.html +++ b/test_data/templates/invoice.html @@ -71,7 +71,6 @@ } table { - font-family: 'Barlow Semi Condensed', sans-serif !important; } #address_frame_content { @@ -125,6 +124,12 @@ .small { font-size: 8pt; } + + #letter_head_content img { + display: block; + margin-left: -.55cm; + } + @@ -138,7 +143,7 @@
{% for address in envelope.AddressContent.Contents %} -

{{ address.Text | markdown_to_html }}

+ {{ address.Text | markdown_to_html }} {% endfor %}