From 466e3fefe4a78e0147a71cbd499cb1c1704801cc Mon Sep 17 00:00:00 2001 From: oysteini Date: Fri, 4 Mar 2011 13:11:21 +0000 Subject: [PATCH] =?UTF-8?q?Endret=20indikatoren=20for=20at=20en=20streng?= =?UTF-8?q?=20er=20kuttet=20i=20boks=C3=B8k.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/search.py b/python/search.py index fa5c66b..0dcf56c 100644 --- a/python/search.py +++ b/python/search.py @@ -9,10 +9,10 @@ def search_book_cmd(search_strings, search_description=False): format = '%-13s %-10s %-40s %-30s' for book in books: b_id = book.getid() or '' - title = cut_str(book.title, 40) + title = cut_str(book.title, 40, '*') authors = map(lambda p: p.first_name+' '+p.last_name, book.get_authors()) - authors_str = cut_str(', '.join(authors), 30) + authors_str = cut_str(', '.join(authors), 30, '*') print format % (book.isbn, b_id, title, authors_str) def search_book(search_strings, search_description=False):