summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pdf_form.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/pdf_form.rb b/lib/pdf_form.rb
index 0695c47..9a831b3 100644
--- a/lib/pdf_form.rb
+++ b/lib/pdf_form.rb
@@ -32,13 +32,15 @@ class PDFForm
subheading("Låter:")
@band.songs.each do |song|
- field("Tittel", song.to_s)
- field("ISRC-kode:", song.isrc)
- field("Utøvere:", song.performers)
- field("Komponister:", song.composers)
- field("Merknad:", song.notes)
- next_line
- @document.stroke { @document.horizontal_rule }
+ unless song.title.empty?
+ field("Tittel", song.to_s)
+ field("ISRC-kode:", song.isrc)
+ field("Utøvere:", song.performers)
+ field("Komponister:", song.composers)
+ field("Merknad:", song.notes)
+ next_line
+ @document.stroke { @document.horizontal_rule }
+ end
end
next_line