branch: elpa/gnosis commit 5bfd804a676b8fa8f1cbde3c9ccd8c1c1326094a Author: Thanos Apollo <pub...@thanosapollo.org> Commit: Thanos Apollo <pub...@thanosapollo.org>
display-next-review: Remove parentheses for next review date. + Remove parentheses & replace white space with "/" --- gnosis.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gnosis.el b/gnosis.el index 36ab5844d4..80b41a2122 100644 --- a/gnosis.el +++ b/gnosis.el @@ -604,8 +604,13 @@ If FALSE t, use gnosis-face-false face" (let* ((interval (car (gnosis-review-algorithm id success))) (next-review-msg (format "\n\n%s %s" (propertize "Next review:" 'face 'gnosis-face-directions) - (propertize (format "%s" interval) 'face - 'gnosis-face-next-review)))) + (propertize + (replace-regexp-in-string + "[]()[:space:]]" + (lambda (match) + (if (string= match " ") "/" "")) + (format "%s" interval) t t) + 'face 'gnosis-face-next-review)))) (if (search-backward "Next review" nil t) ;; Delete previous result, and override with new this should ;; occur only when used for overriding review result.