From 4d7c17e41d8114a2a15d8f1bc455f3f5ecf652f0 Mon Sep 17 00:00:00 2001 From: trav Date: Sat, 10 Oct 2026 23:29:46 -0700 Subject: [PATCH] v0.48.1: a web mix leaves a blank line between the description and the image --- lintunes/__init__.py | 2 +- lintunes/export/templates/index.html.tmpl | 1 + tests/test_round81.py | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lintunes/__init__.py b/lintunes/__init__.py index 0b23bfa..8c0b578 100644 --- a/lintunes/__init__.py +++ b/lintunes/__init__.py @@ -1,3 +1,3 @@ """LinTunes — iTunes-style music library manager and player for Linux.""" -__version__ = "0.48.0" +__version__ = "0.48.1" diff --git a/lintunes/export/templates/index.html.tmpl b/lintunes/export/templates/index.html.tmpl index a442521..8e35873 100644 --- a/lintunes/export/templates/index.html.tmpl +++ b/lintunes/export/templates/index.html.tmpl @@ -63,6 +63,7 @@ $tracklist

--> +

$image_tag diff --git a/tests/test_round81.py b/tests/test_round81.py index 0dd5710..6f6c1f9 100644 --- a/tests/test_round81.py +++ b/tests/test_round81.py @@ -465,3 +465,12 @@ def test_player_ships_a_shuffle_button(): assert 'class="shuffle"' in js and "setShuffle" in js assert ".audiojs .shuffle.on" in css + + +def test_description_and_image_are_spaced_apart(tmp_path): + tracks = [_track(1, _audio(tmp_path, "a.mp3"))] + plan = exporter.plan_export("Mix", tracks, tmp_path / "out", exporter.WEB) + page = exporter.build_index_html(plan, "placeholder.png") + gap = page[page.index(plan.description) + len(plan.description): + page.index("placeholder.png")] + assert "

" in gap