Skip to content

Commit 8905d09

Browse files
Reformat org-html-markdown-style-footnotes--section
1 parent 4f9e7d0 commit 8905d09

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

ox-html-markdown-style-footnotes.el

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,24 @@
2727
(defun org-html-markdown-style-footnotes--section (orig-fun info)
2828
(if org-html-markdown-style-footnotes
2929
(pcase (org-export-collect-footnote-definitions info)
30-
(`nil nil)
31-
(definitions
32-
(format
33-
(plist-get info :html-footnotes-section)
34-
(org-html--translate "Footnotes" info)
35-
(format
36-
"<ol>\n%s</ol>\n"
37-
(mapconcat
38-
(lambda (definition)
39-
(pcase definition
40-
(`(,n ,_ ,def)
41-
(format
42-
"<li id=\"fn.%d\" class=\"footdef\" role=\"doc-footnote\" tabindex=\"-1\">%s %s</li>\n"
30+
(`nil nil)
31+
(definitions
32+
(format
33+
(plist-get info :html-footnotes-section)
34+
(org-html--translate "Footnotes" info)
35+
(format
36+
"<ol>\n%s</ol>\n"
37+
(mapconcat
38+
(lambda (definition)
39+
(pcase definition
40+
(`(,n ,_ ,def)
41+
(format
42+
"<li id=\"fn.%d\" class=\"footdef\" role=\"doc-footnote\" tabindex=\"-1\">%s %s</li>\n"
4343
n
44-
(org-trim (org-export-data def info))
45-
(format "<a href=\"#fnr.%d\" role=\"doc-backlink\">↩&#65038;</a>" n)))))
46-
definitions
47-
"\n")))))
44+
(org-trim (org-export-data def info))
45+
(format "<a href=\"#fnr.%d\" role=\"doc-backlink\">↩&#65038;</a>" n)))))
46+
definitions
47+
"\n")))))
4848
(funcall orig-fun info)))
4949

5050
;;;###autoload

ox-html-markdown-style-footnotes.org

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -235,25 +235,25 @@ The updated copy is defined as ~org-html-markdown-style-footnotes--section~:
235235
#+begin_src emacs-lisp
236236
(defun org-html-markdown-style-footnotes--section (orig-fun info)
237237
(if org-html-markdown-style-footnotes
238-
(pcase (org-export-collect-footnote-definitions info)
239-
(`nil nil)
240-
(definitions
241-
(format
242-
(plist-get info :html-footnotes-section)
243-
(org-html--translate "Footnotes" info)
244-
(format
245-
"<ol>\n%s</ol>\n"
246-
(mapconcat
247-
(lambda (definition)
248-
(pcase definition
249-
(`(,n ,_ ,def)
250-
(format
251-
"<li id=\"fn.%d\" class=\"footdef\" role=\"doc-footnote\" tabindex=\"-1\">%s %s</li>\n"
238+
(pcase (org-export-collect-footnote-definitions info)
239+
(`nil nil)
240+
(definitions
241+
(format
242+
(plist-get info :html-footnotes-section)
243+
(org-html--translate "Footnotes" info)
244+
(format
245+
"<ol>\n%s</ol>\n"
246+
(mapconcat
247+
(lambda (definition)
248+
(pcase definition
249+
(`(,n ,_ ,def)
250+
(format
251+
"<li id=\"fn.%d\" class=\"footdef\" role=\"doc-footnote\" tabindex=\"-1\">%s %s</li>\n"
252252
n
253-
(org-trim (org-export-data def info))
254-
(format "<a href=\"#fnr.%d\" role=\"doc-backlink\">↩&#65038;</a>" n)))))
255-
definitions
256-
"\n")))))
253+
(org-trim (org-export-data def info))
254+
(format "<a href=\"#fnr.%d\" role=\"doc-backlink\">↩&#65038;</a>" n)))))
255+
definitions
256+
"\n")))))
257257
(funcall orig-fun info)))
258258
#+end_src
259259

0 commit comments

Comments
 (0)