Merge pull request #456 from fredericgiquel/fix-duplicate-lambda

Fix duplicate lambda
This commit is contained in:
Yujie Wen 2021-10-18 22:49:00 +08:00 committed by GitHub
commit 2926349690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 12 deletions

View File

@ -860,18 +860,17 @@ Reveal.initialize({
(let ((root-path (file-name-as-directory (plist-get info :reveal-root)))) (let ((root-path (file-name-as-directory (plist-get info :reveal-root))))
(mapconcat (mapconcat
(lambda (p) (lambda (p)
(lambda (p) ;; when it is a list, create a script tag for every entry
;; when it is a list, create a script tag for every entry (cond
(cond ((listp p)
((listp p) (mapconcat (lambda (pi)
(mapconcat (lambda (pi) (format "<script src=\"%s\"></script>"
(format "<script src=\"%s\"></script>" (format pi root-path)))
(format pi root-path))) p
p "\n"))
"\n")) ;; when it is a single string, create a single script tag
;; when it is a single string, create a single script tag (t (format "<script src=\"%s\"></script>\n"
(t (format "<script src=\"%s\"></script>\n" (format p root-path)))))
(format p root-path))))))
plugin-js plugin-js
"")) ""))
;; Second value of the tuple, a list of Reveal plugin ;; Second value of the tuple, a list of Reveal plugin