-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with whitespaces around = #53
Comments
I've spent half an hour for figuring out that it was spaces, not the uppercase categories... |
Haha oh no! I'm sorry! |
Hi, could this be fixed by refining the regular expressions in |
Here's a hacky solution for desperate folks in the meantime ^^ https://hedvigsr.tumblr.com/post/702901773084524544/bib2df-bug-hacky-solution |
I have the same problem. But I have a bibtex file with 3000 citation. It's extremely exhausting to add spaces before and after equal signs (=) manually. Do you know any solution to do it automatically? Do R or any tools support us to do it? |
The
I didn't check the code on real files, but I'm pretty confident that it should work. |
@nguyentruonglt here's my scripted solution:
|
This is the function I used:
|
@giabaio I'd like to help by adjusting bib2df_gather and adjust one of the regexes and make a PR, like @nucleic-acid suggests. But, I'm struggling a bit with parsing the function and I'm concerned I'd cause problems unknowingly. I've made a suggesting in PR #59 |
I've discovered that when I have an entry like this:
I get a table that looks like this from bib2df::bib2df()
I've isolated the problem down to the lack of whitespaces before and after the equal sign at the field assignment. It's an easy fix, I basically just inserted whitespaces before and after every equal sign before a curly bracket, but it was a bit frustrating to debug. Can this be included in the documentation, or fixed?
The text was updated successfully, but these errors were encountered: