From 3162adbd9b045b0ae67c8902b76c726363eabdf4 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 24 Jul 2011 16:24:27 -0700 Subject: HTML writer: Removed English title on footnote back links. This is incongruous in non-English documents. --- src/Text/Pandoc/Writers/HTML.hs | 3 +-- tests/writer.html | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index fe6ee5db4..8492e59c0 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -648,8 +648,7 @@ blockListToNote opts ref blocks = -- If last block is Para or Plain, include the backlink at the end of -- that block. Otherwise, insert a new Plain block with the backlink. let backlink = [RawInline "html" $ " " ++ + "\" class=\"footnoteBackLink\">" ++ (if writerAscii opts then "↩" else "↩") ++ ""] blocks' = if null blocks then [] diff --git a/tests/writer.html b/tests/writer.html index fac22f17e..279c33019 100644 --- a/tests/writer.html +++ b/tests/writer.html @@ -564,15 +564,15 @@ document.write(''+''+e+''+'<\/'+

    -
  1. Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.

  2. +
  3. Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.

  4. Here’s the long note. This one contains multiple blocks.

    Subsequent blocks are indented to show that they belong to the footnote (as with list items).

      { <code> }
     
    -

    If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.

  5. -
  6. This is easier to type. Inline notes may contain links and ] verbatim characters, as well as [bracketed text].

  7. -
  8. In quote.

  9. -
  10. In list.

  11. +

    If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.

    +
  12. This is easier to type. Inline notes may contain links and ] verbatim characters, as well as [bracketed text].

  13. +
  14. In quote.

  15. +
  16. In list.

-- cgit v1.2.3