v0.48.1: a web mix leaves a blank line between the description and the image
This commit is contained in:
@@ -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