New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textsize directive with percentage raises error #31

Closed
lpinner opened this Issue Nov 29, 2017 · 1 comment

Comments

2 participants
@lpinner

lpinner commented Nov 29, 2017

The following .pro that uses a (nested) textsize directive with a percentage raises an error. No issue when the textsize is an absolute value.

Testing against the dev branch

$ ./script/chordpro --version
This is ChordPro version 0.910_015

$ ./script/chordpro -X test.pro
Use of uninitialized value in multiplication (*) at script/../lib/App/Music/ChordPro/Output/PDF.pm line 227.
A font size is required at script/../lib/App/Music/ChordPro/Output/PDF.pm line 1886.

$ cat test.pro
{title: Swing Low Sweet Chariot}
{subtitle: Traditional}

Swing low, sweet chariot,
{textfont: Helvetica-Oblique}
Comin' for to carry me home.
{textfont}
Swing low, sweet chariot,
{textfont: Helvetica-Oblique}
Comin’ for to carry me home.
{textsize: 75%} 
#{textsize: 10} 
(again)
{textsize}
{textfont}
@sciurius

This comment has been minimized.

Show comment
Hide comment
@sciurius

sciurius Nov 29, 2017

Collaborator

Thanks, fixed in 091_016.

Collaborator

sciurius commented Nov 29, 2017

Thanks, fixed in 091_016.

@sciurius sciurius closed this Dec 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment