ChordPro / chordpro

Reference implementation of the ChordPro standard for musical lead sheets.
Other
319 stars 51 forks source link

Image will be displayed twice when option `spread` is used #443

Open devnibo opened 6 days ago

devnibo commented 6 days ago

Describe the bug

# song.txt
{title: Something}

{image: id=8 src="dropofwater.png"}
{image: id=8 spread="300"}

When creating a pdf output file with chordpro song.txt the image will be displayed twice. This behavior seems to depend on the option spread.

To Reproduce

Steps to reproduce the behavior:

  1. Download/Create chordpro test file song.txt
  2. Download the test image dropofwater.png
  3. Run chordpro song.txt
  4. View song.pdf

Expected behavior

I expected to see only one image in the pdf output file because the first image directive defines an image asset and the second displays it with additional optional options.

Attachments

song.txt dropofwater.png

System information

Additional context

sciurius commented 6 days ago

Thanks for the report. Fixed in git.