Add new fields in bibtex

This commit is contained in:
Phyks 2014-04-25 01:37:19 +02:00
parent 70e805f58f
commit 20a06d1f41

View File

@ -188,7 +188,14 @@ def checkBibtex(filename, bibtex):
if new_value != '': if new_value != '':
bibtex[field] = 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 return bibtex