Fixed bug in generate_bib in texnote
This commit is contained in:
parent
67dc6d1983
commit
62e3c8e9e4
@ -192,6 +192,8 @@ class TexnotePlugin(PapersPlugin):
|
|||||||
shutil.move(self.get_texfile(old_citekey), self.get_texfile(new_citekey))
|
shutil.move(self.get_texfile(old_citekey), self.get_texfile(new_citekey))
|
||||||
|
|
||||||
def generate_bib(self):
|
def generate_bib(self):
|
||||||
|
if files.check_file(TPL_BIB):
|
||||||
|
os.remove(TPL_BIB)
|
||||||
cmd = 'papers list -k |xargs papers export >> {}'.format(TPL_BIB)
|
cmd = 'papers list -k |xargs papers export >> {}'.format(TPL_BIB)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user