From 3b402663079ceca792e67c720b11dd6c80e13959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Giquel?= Date: Thu, 14 Oct 2021 21:44:34 +0200 Subject: [PATCH] Fix duplicate lambda --- ox-reveal.el | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/ox-reveal.el b/ox-reveal.el index 397f9e8..46b6bc9 100644 --- a/ox-reveal.el +++ b/ox-reveal.el @@ -860,18 +860,17 @@ Reveal.initialize({ (let ((root-path (file-name-as-directory (plist-get info :reveal-root)))) (mapconcat (lambda (p) - (lambda (p) - ;; when it is a list, create a script tag for every entry - (cond - ((listp p) - (mapconcat (lambda (pi) - (format "" - (format pi root-path))) - p - "\n")) - ;; when it is a single string, create a single script tag - (t (format "\n" - (format p root-path)))))) + ;; when it is a list, create a script tag for every entry + (cond + ((listp p) + (mapconcat (lambda (pi) + (format "" + (format pi root-path))) + p + "\n")) + ;; when it is a single string, create a single script tag + (t (format "\n" + (format p root-path))))) plugin-js "")) ;; Second value of the tuple, a list of Reveal plugin