lib/alexandria/console.rb in alexandria-book-collection-manager-0.7.3 vs lib/alexandria/console.rb in alexandria-book-collection-manager-0.7.4

- old
+ new

@@ -7,14 +7,14 @@ module Alexandria def self.list_books_on_console(_title = true, authors = true) collection = Alexandria::LibraryCollection.instance collection.reload libraries = collection.all_regular_libraries - output_string = '' + output_string = "" @books = libraries.flatten @books.each do |book| - book_authors = book.authors.join(' & ') if authors - output_string += [book.title, book_authors].join(', ') + "\n" + book_authors = book.authors.join(" & ") if authors + output_string += [book.title, book_authors].join(", ") + "\n" end output_string end end