Prettier output using symbols

This commit is contained in:
Arun Prakash Jana 2016-05-18 04:05:01 +05:30
parent c252981bd2
commit 8419f4ac79
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB

9
buku
View File

@ -605,18 +605,15 @@ def printRecord(row, count=0):
# Print title
if row[2] != '':
print(" %s" % row[2])
print("")
print(" \x1B[91m>\x1B[0m %s" % row[2])
# Print description
if row[4] != '':
print(" %s" % row[4])
#print("\t\x1B[91m[DESC]\x1B[0m %s" % row[4])
print(" \x1B[91m+\x1B[0m %s" % row[4])
# Print tags
if row[3] != ',':
print(" \x1B[91m[TAGS]\x1B[0m %s" % row[3][1:-1])
print(" \x1B[91m#\x1B[0m %s" % row[3][1:-1])
print("")