fix whitespace stripping bug
@ -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:
@ -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']))
@ -12,4 +12,4 @@ doc = Document.newFromXML('examples/test.xml')
style = Style(unitWidth=10)
ren = Renderer(doc, style)
ren.savePDF('test.pdf')
ren.savePDF('/Users/ivan/Desktop/test.pdf')