Stygt triks for å fjerne ekstra newline ved printing.
This commit is contained in:
parent
84f00e0140
commit
ca1f1cfbcb
|
@ -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()
|
||||
|
|
Reference in New Issue