From bd8d1c38988c265c509a705f993d0d23b3d34fbc Mon Sep 17 00:00:00 2001 From: Phyks Date: Thu, 1 May 2014 01:36:35 +0200 Subject: [PATCH] Update parsed2Bibtex --- README.md | 2 -- backend.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 13278a2..7fc5551 100644 --- a/README.md +++ b/README.md @@ -107,8 +107,6 @@ Here are some sources of inspirations for this project : A list of ideas and TODO. Don't hesitate to give feedback on the ones you really want or to propose your owns. -10. Refactor - 11. Use bibtex-parser lib to write bibtex, instead of parsed2BibTex 20. No DOI for arXiv / HAL 30. Parameter to disable remote search 40. Open file diff --git a/backend.py b/backend.py index 82be237..0103b8d 100644 --- a/backend.py +++ b/backend.py @@ -7,7 +7,6 @@ import tools import params from bibtexparser.bparser import BibTexParser from bibtexparser.customization import homogeneize_latex_encoding -from bibtexparser.bwriter import bibtex as bibTexWriter def getNewName(src, bibtex): @@ -45,7 +44,7 @@ def parsed2Bibtex(parsed): for field in [i for i in sorted(parsed) if i not in ['type', 'id']]: bibtex += "\t"+field+"={"+parsed[field]+"},\n" - bibtex += "}\n" + bibtex += "}\n\n" return bibtex