aboutsummaryrefslogtreecommitdiff
path: root/lib/plain_exporter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plain_exporter.rb')
-rw-r--r--lib/plain_exporter.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/plain_exporter.rb b/lib/plain_exporter.rb
index 514d243..018c8f2 100644
--- a/lib/plain_exporter.rb
+++ b/lib/plain_exporter.rb
@@ -33,8 +33,11 @@ class PlainExporter < BaseExporter
str += thing.note.present? ? "#{thing.note}. #{thing.publisher}" : thing.publisher
end
+ str = str.strip
if thing.address.present?
str + ", #{thing.address}: #{thing.year}."
+ elsif str.blank?
+ nil
else
"#{str}."
end