ropensci / bibtex

bibtex parser for R
https://docs.ropensci.org/bibtex/
36 stars 12 forks source link

protected string not correctly parsed #5

Closed romainfrancois closed 9 years ago

romainfrancois commented 10 years ago

From Achim:

if author/editor fields contain commas in a protected string, they are not parsed correctly by bibtex::read.bib. Attached is an example for author = {{The MathWorks, Inc.}} where the current code first splits on the comma:

R> x <- read.bib("matlab.bib")
R> x$author
[1] "Inc.} {The MathWorks"

Of course, subsequent operations (printing, export to BibTeX again) also don't do the right thing or throw warnings. It would be great if you could fix this.

Thanks in advance & best wishes, Z