Skip to content
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

Be more tolerant of whitespace. #5

Closed
laceysanderson opened this issue May 30, 2018 · 3 comments
Closed

Be more tolerant of whitespace. #5

laceysanderson opened this issue May 30, 2018 · 3 comments
Labels

Comments

@laceysanderson
Copy link
Member

Currently any whitespace at the beginning of a tag = value pair causes it to not be recognized as shown in @bradfordcondon example bibtext file: https://github.com/UofS-Pulse-Binfo/tripal_bibtex/blob/7.x-3.x/example/example.bib

We should be more tolerant especially since this makes the file Much more readable.

@bradfordcondon
Copy link
Contributor

bradfordcondon commented May 30, 2018

I was thinking about this: would it make sense to just split on _=_ and trim the 0 key to remove whitespace?

@laceysanderson
Copy link
Member Author

I think we're better off making the regex more tolerant. We could end up with issues if there is an = in the value: tag = {lorem ipsum = latin nonsense}

@laceysanderson
Copy link
Member Author

Also solved in @spficklin PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants