andras-simonyi / citeproc-org

Renders Org-mode citations in CSL styles using citeproc-el.
GNU General Public License v3.0
68 stars 2 forks source link

breaks with single page citations #1

Closed dcherian closed 6 years ago

dcherian commented 6 years ago

Example bibtex entry

@article{Dyson2004,
  title = {A Meeting with {{Enrico Fermi}}},
  volume = {427},
  issn = {0028-0836, 1476-4679},
  doi = {10.1038/427297a},
  number = {6972},
  journal = {Nature},
  author = {Dyson, Freeman},
  month = jan,
  year = {2004},
  pages = {297--297},}

citeproc-prange--end-significant throws an error saying Wrong argument

andras-simonyi commented 6 years ago

@dcherian, thanks for reporting this -- I haven't encountered such a "degenerate" page range before. The only reasonable behavior I can imagine is to automatically reduce these to a one page locator (as opposed to a range). Do you see situations where this would give an incorrect result?

dcherian commented 6 years ago

Yes single page number seems to be how people cite it.

andras-simonyi commented 6 years ago

This issue was moved to andras-simonyi/citeproc-el#3

andras-simonyi commented 6 years ago

Since it was caused by the underlying citeproc-el library, I've moved the issue and fixed it there -- release 0.1.1, which I've just released already contains the fix.

dcherian commented 6 years ago

Awesome thanks.