v0.48.1: a web mix leaves a blank line between the description and the image
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
"""LinTunes — iTunes-style music library manager and player for Linux."""
|
||||
|
||||
__version__ = "0.48.0"
|
||||
__version__ = "0.48.1"
|
||||
|
||||
@@ -63,6 +63,7 @@ $tracklist
|
||||
</p>
|
||||
-->
|
||||
|
||||
<br><br>
|
||||
$image_tag
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -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 "<br><br>" in gap
|
||||
|
||||
Reference in New Issue
Block a user