summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--src/guile/skribilo/engine/html.scm12
2 files changed, 11 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index e5e860a..514541f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-Copyright (C) 2005, 2006, 2007, 2008  Ludovic Courtès <ludo@gnu.org>
+Copyright (C) 2005, 2006, 2007, 2008, 2009  Ludovic Courtès <ludo@gnu.org>
 
   Copying and distribution of this file, with or without modification,
   are permitted in any medium without royalty provided the copyright
@@ -14,6 +14,7 @@ Copyright (C) 2005, 2006, 2007, 2008  Ludovic Courtès <ludo@gnu.org>
 ** New `--custom' compiler option
 ** Using `(image :url ...)' with `lout' yields a warning, not an error
 ** New `rss-2' input syntax, for RSS 2.0 feeds
+** HTML engine: footnotes now yield hyperlinks back to the call site
 
 * New in Skribilo 0.9.1
 
diff --git a/src/guile/skribilo/engine/html.scm b/src/guile/skribilo/engine/html.scm
index 3268e05..0fded86 100644
--- a/src/guile/skribilo/engine/html.scm
+++ b/src/guile/skribilo/engine/html.scm
@@ -1,6 +1,6 @@
 ;;; html.scm  --  HTML engine.
 ;;;
-;;; Copyright 2005, 2006, 2007, 2008  Ludovic Courtès <ludo@gnu.org>
+;;; Copyright 2005, 2006, 2007, 2008, 2009  Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright 2003, 2004  Manuel Serrano
 ;;;
 ;;;
@@ -936,7 +936,10 @@
 			      (format #t "<a name=\"footnote-~a\">"
 				      (string-canonicalize
 				       (container-ident fn)))
-			      (format #t "<sup><small>~a</small></sup></a>: "
+                              (format #t "<a href=\"#footnote-site-~a\">"
+                                      (string-canonicalize
+                                       (container-ident fn)))
+			      (format #t "<sup><small>~a</small></sup></a></a> "
 				      (markup-option fn :label))
 			      (output (markup-body fn) e)
 			      (display "\n<br>\n")
@@ -1383,9 +1386,12 @@
 (markup-writer 'footnote
    :options '(:label)
    :action (lambda (n e)
+              (format #t "<a name=\"footnote-site-~a\">"
+                      (string-canonicalize (container-ident n)))
 	      (format #t "<a href=\"#footnote-~a\"><sup><small>~a</small></sup></a>"
 		      (string-canonicalize (container-ident n))
-		      (markup-option n :label))))
+		      (markup-option n :label))
+              (format #t "</a>")))
 
 ;*---------------------------------------------------------------------*/
 ;*    linebreak ...                                                    */