From ca1f1cfbcbed15611a77b09aea497bb81d43b0f9 Mon Sep 17 00:00:00 2001 From: oysteini Date: Sun, 6 Mar 2011 12:25:27 +0000 Subject: [PATCH] =?UTF-8?q?Stygt=20triks=20for=20=C3=A5=20fjerne=20ekstra?= =?UTF-8?q?=20newline=20ved=20printing.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/worblehat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/worblehat.py b/python/worblehat.py index d829a95..08bf666 100755 --- a/python/worblehat.py +++ b/python/worblehat.py @@ -31,7 +31,7 @@ def show_book_or_person(ids, commit_format=False, tmp_file=False): #return write_tmpfile('-'.join(ids), output) pass else: - print output + print output.strip() def get_book_or_person(id): books = Book.objects.filter(Q(isbn=id)|Q(id__id=id)).all()