Skip to content

Commit

Permalink
fix but in pre/post note edits.
Browse files Browse the repository at this point in the history
discovered from issue #1052.
  • Loading branch information
jkitchin committed Jan 2, 2023
1 parent 26735e9 commit 29223fb
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions org-ref-citation-links.el
Original file line number Diff line number Diff line change
Expand Up @@ -930,16 +930,20 @@ arg COMMON, edit the common prefixes instead."
(setq prefix (concat
(read-string "prenote: "
(string-trim
(plist-get
(nth index (plist-get data :references))
:prefix)))
(or
(plist-get
(nth index (plist-get data :references))
:prefix)
"")))
" ")
suffix (concat " "
(read-string "postnote: "
(string-trim
(plist-get
(nth index (plist-get data :references))
:suffix))))
(or
(plist-get
(nth index (plist-get data :references))
:suffix)
""))))
delta (- (length (plist-get
(nth index (plist-get data :references))
:prefix))
Expand Down

0 comments on commit 29223fb

Please sign in to comment.