From 474ca638f49407c616a854cf07ca3abcc9ae042d Mon Sep 17 00:00:00 2001
From: Ludovic Courtès
Date: Sat, 1 Dec 2012 15:48:44 +0100
Subject: html: Don't emit nested tags for footnotes.
* src/guile/skribilo/engine/html.scm (&html-footnotes): Don't emit
nested tags. Reported by Klaus Schilling .
---
src/guile/skribilo/engine/html.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
(limited to 'src')
diff --git a/src/guile/skribilo/engine/html.scm b/src/guile/skribilo/engine/html.scm
index 9f21d2c..a48745e 100644
--- a/src/guile/skribilo/engine/html.scm
+++ b/src/guile/skribilo/engine/html.scm
@@ -943,14 +943,15 @@
(let loop ((fns footnotes))
(if (pair? fns)
(let ((fn (car fns)))
- (format #t ""
+ ;; Note: the tags must not be nested.
+ (format #t ""
(string-canonicalize
(container-ident fn)))
(format #t ""
(string-canonicalize
(container-ident fn)))
- (format #t "~a "
- (markup-option fn :label))
+ (format #t "~a"
+ (markup-option fn :label))
(output (markup-body fn) e)
(display "\n
\n")
(loop (cdr fns)))))
--
cgit v1.2.3