ge-ne/bibtool

`Missing ',' assumed.` not printed when sorting enabled (-s or -S)

Closed this issue · 2 comments

In following bib file misses the comma after the field value (American Mineralogist) for journal:

❯ cat my2.bib
@Article{Dove:1997,
  author  = {Dove, Martin T.},
  title   = {{Theory of displacive phase transitions in minerals}},
  doi     = {10.2138/am-1997-3-401},
  issn    = {0003-004X},
  journal = {American Mineralogist}
  month   = {apr},
  number  = {3-4},
  pages   = {213--244},
  url     = {https://pubs.geoscienceworld.org/ammin/article/82/3-4/213-244/43266},
  volume  = {82},
  year    = {1997}
}

❯ bibtool my2.bib

  month   = {apr},
__^
*** BibTool WARNING (line 7 in ./my2.bib): Missing ',' assumed.

@Article{	  dove:1997,
  author	= {Dove, Martin T.},
  title		= {{Theory of displacive phase transitions in minerals}},
  doi		= {10.2138/am-1997-3-401},
  issn		= {0003-004X},
  journal	= {American Mineralogist},
  month		= {apr},
  number	= {3-4},
  pages		= {213--244},
  url		= {https://pubs.geoscienceworld.org/ammin/article/82/3-4/213-244/43266},
  volume	= {82},
  year		= {1997}
}

❯ bibtool -s my2.bib

@Article{	  dove:1997,
  author	= {Dove, Martin T.},
  title		= {{Theory of displacive phase transitions in minerals}},
  doi		= {10.2138/am-1997-3-401},
  issn		= {0003-004X},
  journal	= {American Mineralogist},
  month		= {apr},
  number	= {3-4},
  pages		= {213--244},
  url		= {https://pubs.geoscienceworld.org/ammin/article/82/3-4/213-244/43266},
  volume	= {82},
  year		= {1997}
}

v2.67 and commit 4120397 are affected.

Could the message also be printed when sorting is enabled? There is still the switch -q for quiet when someone does not want to see the message.

ge-ne commented

fixed

Yes, the message is now still there. Thanks.