From 4bb704f3bfb5f9661e8ab4e2af8a8c3249d67d1f Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 13 Nov 2015 13:43:33 +0530 Subject: [PATCH] Notify empty titles in red during add or update. Signed-off-by: Arun Prakash Jana --- markit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/markit b/markit index 76ee60d..122f99a 100755 --- a/markit +++ b/markit @@ -198,7 +198,10 @@ def AddUpdateEntry(conn, cur, keywords, index): if online == True: meta = meta.strip().replace("\n","") - print("Title: [%s]" % meta) + if meta == '': + print("\x1B[91mTitle: []\x1B[0m") + else: + print("Title: [%s]" % meta) if index == None: # Insert a new entry try: