--- alexandria-0.6.3.orig/lib/alexandria/ui/iconview_tooltips.rb +++ alexandria-0.6.3/lib/alexandria/ui/iconview_tooltips.rb @@ -82,19 +82,20 @@ if (title.size > 0) or (authors.size > 0) html += "\n" end - if (publisher.size > 0) or (year.size > 0) - html += "<small>" - if publisher.size > 0 - html += "#{publisher}" - end - if year.size > 0 - if publisher.size > 0 - html += " " - end - html += "(#{year})" + + html += "<small>" + if publisher and publisher.size > 0 + html += "#{publisher}" + end + + if year and year.size > 0 + if publisher and publisher.size > 0 + html += " " end - html += "</small>" + html += "(#{year})" end + + html += "</small>" end def on_motion(view, event)