From 20a06d1f41e0741c4852be562c881ad11909a692 Mon Sep 17 00:00:00 2001 From: Phyks Date: Fri, 25 Apr 2014 01:37:19 +0200 Subject: [PATCH] Add new fields in bibtex --- main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index abdaa57..c0a7734 100755 --- a/main.py +++ b/main.py @@ -188,7 +188,14 @@ def checkBibtex(filename, bibtex): if new_value != '': bibtex[field] = new_value - Exception("TODO : Add new fields") + while True: + new_field = rawInput("Add a new field (leave empty to skip) ? ") + if new_field == '': + break + new_value = rawInput("Value for field "+new_field+" ? ") + bibtex[new_field] = new_value + + # TODO : Reprint bibtex and check return bibtex