From 0e4fdb65194885cd2b14702f8744a0a98c65957a Mon Sep 17 00:00:00 2001 From: gitjags <38481326+gitjags@users.noreply.github.com> Date: Sat, 25 Aug 2018 10:12:21 -0700 Subject: [PATCH] Fix the string format syntax error Before: Title (press %s when finished) After: Title (press ctrl+D when finished) --- tnote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tnote b/tnote index 1428d2f..6362ae5 100755 --- a/tnote +++ b/tnote @@ -123,7 +123,7 @@ def clear(): def add_entry(): """Adds an entry to the diary""" - title_string = "Title (press %s when finished)".format(finish_key) + title_string = "Title (press {} when finished)".format(finish_key) # print(title_string) puts(colored.yellow(title_string)) puts(colored.green("="*len(title_string)))