question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An option for not aligning `=` when JabRef saves/imports bib files as well as adds new entries

See original GitHub issue

Is your suggestion for improvement related to a problem? Please describe. I raised a question in the JabRef forum but found no solution. I think such an option is lacked in current JabRef stable release (i.e., version 5.5).

Describe the solution you’d like When JabRef adds new entries as well as formats existing bib files, it can be set to not add extra whitespaces to align = for each field in entries.

Additional context I would have entries persist like

@Article{key,
  author = {Author},
  title = {Title},
  year = {2022},
}

instead of

@Article{key,
  author = {Author},
  title  = {Title},
  year   = {2022},
}

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
gaochenyicommented, Apr 15, 2022

Out of curiosity: How much space would you save removing the empty spaces? How many entries do you have in your library file(s)?

@ThiloteE Currently I have 500+ entries. So it just saves 64 KiB for each time when I sync with online storage.

1reaction
Siedlerchrcommented, Apr 14, 2022

Hi, this is not possible and I doubt we will add this feature. The alignment was done purposefully, so that users with version control systems or other comparison tools have no weird issues when comparing files. For a history of the format evolution: https://github.com/JabRef/blog.jabref.org/pull/47/files

On import and file opening, the bib file is read by JabRef’s own Bibtex parser and a new library object is created which uses the alignment in the content serialization which is then also written to the file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to avoid adding unnecessary whitespaces while saving ...
The relevant github issue is here: An option for not aligning `=` when JabRef saves/imports bib files as well as adds new entries...
Read more >
Use Biblatex/Biber to create a new subdatabase based on an ...
tex that uses a BibTeX database (bib file) called master.bib containing all of your references. Normally, of course, paper.tex doesn't cite ...
Read more >
Does Overleaf support JabRef?
JabRef saves your bibliography entries to a .bib file that you can add to your project: click the Upload icon ( UploadIcon.png )...
Read more >
Making a .bib file from your EndNote Library - IT Help Desk
If you already have an EndNote library, you can continue using Endnote or switch to a program that makes bib files more easily...
Read more >
Lecture 2: BibTeX and Vim - Jang Soo Kim's
Using JabRef you can add a new entry directly from "Web search" at the bottom ... Edit the tex file so that it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found