diff --git a/chordsheet/parsers.py b/chordsheet/parsers.py index 7d73c84..06d5067 100644 --- a/chordsheet/parsers.py +++ b/chordsheet/parsers.py @@ -10,7 +10,7 @@ def parseFingering(fingering, instrument): if len(fingering) == numStrings: # if the fingering is entered in concise format e.g. xx4455 output = list(fingering) else: # if entered in long format e.g. x,x,10,10,11,11 - output = fingering.split(",").strip() + output = [f.strip() for f in fingering.split(",")] if len(output) == numStrings: return output else: diff --git a/chordsheet/render.py b/chordsheet/render.py index 5eece09..7fec89d 100644 --- a/chordsheet/render.py +++ b/chordsheet/render.py @@ -517,6 +517,9 @@ class Renderer: rlDocList.append( Paragraph(self.document.subtitle, styles['Subtitle'])) + if self.document.composer or self.document.arranger: + rlDocList.append(Spacer(0, 2*mm)) + if self.document.composer: rlDocList.append(Paragraph("Composer: {c}".format( c=self.document.composer), styles['Credits'])) diff --git a/test.py b/test.py index f35a214..be213a4 100644 --- a/test.py +++ b/test.py @@ -12,4 +12,4 @@ doc = Document.newFromXML('examples/test.xml') style = Style(unitWidth=10) ren = Renderer(doc, style) -ren.savePDF('test.pdf') \ No newline at end of file +ren.savePDF('/Users/ivan/Desktop/test.pdf') \ No newline at end of file