Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oc-basic.el: Stringify year from CSL-JSON date-parts
* lisp/oc-basic.el (org-cite-basic--parse-json): Make sure year extracted from date-parts is returned as string. Raise error if original type other than number or string. The stringifiation is motivated by errors like the following on Emacs 28 with nativecomp: Error during redisplay: (jit-lock-function 544) signaled (wrong-type-argument "Argument is not a string or a secondary string: 2007") Additionally, the type check will warn users about problems in their CSL-JSON bibliographies. Fixes https://list.orgmode.org/875ykv4k2q.fsf@localhost/T/#t TINYCHANGE
- Loading branch information