diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testsuite.native | 6 | ||||
-rw-r--r-- | tests/testsuite.txt | 26 | ||||
-rw-r--r-- | tests/writer.html | 6 | ||||
-rw-r--r-- | tests/writer.latex | 4 | ||||
-rw-r--r-- | tests/writer.markdown | 31 | ||||
-rw-r--r-- | tests/writer.native | 6 | ||||
-rw-r--r-- | tests/writer.rst | 11 | ||||
-rw-r--r-- | tests/writer.rtf | 6 | ||||
-rw-r--r-- | tests/writer.smart.html | 6 |
9 files changed, 49 insertions, 53 deletions
diff --git a/tests/testsuite.native b/tests/testsuite.native index 99b6ab79b..340e11a5c 100644 --- a/tests/testsuite.native +++ b/tests/testsuite.native @@ -318,12 +318,12 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane , Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] (Src "movie.jpg" ""),Space,Str "icon."] , HorizontalRule , Header 1 [Str "Footnotes"] -, Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",Space,Str "reference",NoteRef "1",Str ",",Space,Str "and",Space,Str "another",NoteRef "longnote",Str ".",Space,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",Space,Str "contains",Space,Str "a",Space,Str "space",Str "^",Str "(my",Space,Str "note)."] +, Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",Space,Str "reference",NoteRef "1",Str ",",Space,Str "and",Space,Str "another",NoteRef "longnote",Str ".",Space,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",Space,Str "contains",Space,Str "a",Space,Str "space",Str "[",Str "^",Str "my",Space,Str "note",Str "]",Str "."] , Note "1" [ Para [Str "Here",Space,Str "is",Space,Str "the",Space,Str "footnote.",Space,Str "It",Space,Str "can",Space,Str "go",Space,Str "anywhere",Space,Str "in",Space,Str "the",Space,Str "document,",Space,Str "not",Space,Str "just",Space,Str "at",Space,Str "the",Space,Str "end."] ] , Note "longnote" [ Para [Str "Here's",Space,Str "the",Space,Str "other",Space,Str "note.",Space,Str "This",Space,Str "one",Space,Str "contains",Space,Str "multiple",Space,Str "blocks."] - , Para [Str "Caret",Space,Str "characters",Space,Str "are",Space,Str "used",Space,Str "to",Space,Str "indicate",Space,Str "that",Space,Str "the",Space,Str "blocks",Space,Str "all",Space,Str "belong",Space,Str "to",Space,Str "a",Space,Str "single",Space,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "block",Space,Str "quotes)."] + , Para [Str "Subsequent",Space,Str "blocks",Space,Str "are",Space,Str "indented",Space,Str "to",Space,Str "show",Space,Str "that",Space,Str "they",Space,Str "belong",Space,Str "to",Space,Str "the",Space,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "list",Space,Str "items)."] , CodeBlock " { <code> }" - , Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "use",Space,Str "a",Space,Str "caret",Space,Str "at",Space,Str "the",Space,Str "beginning",Space,Str "of",Space,Str "every",Space,Str "line,",Space,Str "as",Space,Str "with",Space,Str "blockquotes,",Space,Str "but",Space,Str "all",Space,Str "that",Space,Str "you",Space,Str "need",Space,Str "is",Space,Str "a",Space,Str "caret",Space,Str "at",Space,Str "the",Space,Str "beginning",Space,Str "of",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "the",Space,Str "block",Space,Str "and",Space,Str "any",Space,Str "preceding",Space,Str "blank",Space,Str "lines."] ] ] + , Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "indent",Space,Str "every",Space,Str "line,",Space,Str "but",Space,Str "you",Space,Str "can",Space,Str "also",Space,Str "be",Space,Str "lazy",Space,Str "and",Space,Str "just",Space,Str "indent",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "each",Space,Str "block."] ] ] diff --git a/tests/testsuite.txt b/tests/testsuite.txt index f27f00245..1beb7aaac 100644 --- a/tests/testsuite.txt +++ b/tests/testsuite.txt @@ -590,22 +590,20 @@ Here is a movie ![movie](movie.jpg) icon. # Footnotes -Here is a footnote reference^(1), and another^(longnote). +Here is a footnote reference[^1], and another[^longnote]. This should *not* be a footnote reference, because it -contains a space^(my note). +contains a space[^my note]. -^(1) Here is the footnote. It can go anywhere in the document, +[^1]: Here is the footnote. It can go anywhere in the document, not just at the end. -^(longnote) Here's the other note. This one contains multiple +[^longnote]: Here's the other note. This one contains multiple blocks. -^ -^ Caret characters are used to indicate that the blocks all belong -to a single footnote (as with block quotes). -^ -^ { <code> } -^ -^ If you want, you can use a caret at the beginning of every line, -^ as with blockquotes, but all that you need is a caret at the -^ beginning of the first line of the block and any preceding -^ blank lines. + + 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. diff --git a/tests/writer.html b/tests/writer.html index 77cb3a47f..37920383b 100644 --- a/tests/writer.html +++ b/tests/writer.html @@ -438,17 +438,17 @@ Cat & 1 \\ \hline <p>Here is a movie <img src="movie.jpg" alt="movie"> icon.</p> <hr /> <h1>Footnotes</h1> -<p>Here is a footnote reference<span class="pandocNoteRef"><a name="ref_1" href="#note_1">(1)</a></span>, and another<span class="pandocNoteRef"><a name="ref_longnote" href="#note_longnote">(longnote)</a></span>. This should <em>not</em> be a footnote reference, because it contains a space^(my note).</p> +<p>Here is a footnote reference<span class="pandocNoteRef"><a name="ref_1" href="#note_1">(1)</a></span>, and another<span class="pandocNoteRef"><a name="ref_longnote" href="#note_longnote">(longnote)</a></span>. This should <em>not</em> be a footnote reference, because it contains a space[^my note].</p> <div class="pandocNote"> <p class="first"><span class="pandocNoteMarker"><a name="note_1" href="#ref_1">(1)</a></span> Here is the footnote. It can go anywhere in the document, not just at the end.</p> </div> <div class="pandocNote"> <p class="first"><span class="pandocNoteMarker"><a name="note_longnote" href="#ref_longnote">(longnote)</a></span> Here's the other note. This one contains multiple blocks.</p> -<p>Caret characters are used to indicate that the blocks all belong to a single footnote (as with block quotes).</p> +<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p> <pre><code> { <code> } </code></pre> -<p>If you want, you can use a caret at the beginning of every line, as with blockquotes, but all that you need is a caret at the beginning of the first line of the block and any preceding blank lines.</p> +<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.</p> </div> </body> diff --git a/tests/writer.latex b/tests/writer.latex index 30ea0f54f..e892e12e6 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -569,12 +569,12 @@ Here is a movie \includegraphics{movie.jpg} icon. Here is a footnote reference\footnote{Here is the footnote. It can go anywhere in the document, not just at the end.}, and another\footnote{Here's the other note. This one contains multiple blocks. -Caret characters are used to indicate that the blocks all belong to a single footnote (as with block quotes). +Subsequent blocks are indented to show that they belong to the footnote (as with list items). \begin{verbatim} { <code> } \end{verbatim} -If you want, you can use a caret at the beginning of every line, as with blockquotes, but all that you need is a caret at the beginning of the first line of the block and any preceding blank lines.}. This should \emph{not} be a footnote reference, because it contains a space\^{}(my note). +If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.}. This should \emph{not} be a footnote reference, because it contains a space[\^{}my note]. \end{document} diff --git a/tests/writer.markdown b/tests/writer.markdown index 737ddd524..f84372797 100644 --- a/tests/writer.markdown +++ b/tests/writer.markdown @@ -607,21 +607,20 @@ Here is a movie ![movie](movie.jpg) icon. # Footnotes -Here is a footnote reference^(1), and another^(longnote). This +Here is a footnote reference[^1], and another[^longnote]. This should *not* be a footnote reference, because it contains a -space\^(my note). - -^(1) Here is the footnote. It can go anywhere in the document, not just -^ at the end. - -^(longnote) Here's the other note. This one contains multiple blocks. -^ -^ Caret characters are used to indicate that the blocks all belong to -^ a single footnote (as with block quotes). -^ -^ { <code> } -^ -^ If you want, you can use a caret at the beginning of every line, as -^ with blockquotes, but all that you need is a caret at the beginning -^ of the first line of the block and any preceding blank lines. +space[\^my note]. + +[^1]: Here is the footnote. It can go anywhere in the document, not just + at the end. + +[^longnote]: Here's the other 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. diff --git a/tests/writer.native b/tests/writer.native index 99b6ab79b..340e11a5c 100644 --- a/tests/writer.native +++ b/tests/writer.native @@ -318,12 +318,12 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane , Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] (Src "movie.jpg" ""),Space,Str "icon."] , HorizontalRule , Header 1 [Str "Footnotes"] -, Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",Space,Str "reference",NoteRef "1",Str ",",Space,Str "and",Space,Str "another",NoteRef "longnote",Str ".",Space,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",Space,Str "contains",Space,Str "a",Space,Str "space",Str "^",Str "(my",Space,Str "note)."] +, Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",Space,Str "reference",NoteRef "1",Str ",",Space,Str "and",Space,Str "another",NoteRef "longnote",Str ".",Space,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",Space,Str "contains",Space,Str "a",Space,Str "space",Str "[",Str "^",Str "my",Space,Str "note",Str "]",Str "."] , Note "1" [ Para [Str "Here",Space,Str "is",Space,Str "the",Space,Str "footnote.",Space,Str "It",Space,Str "can",Space,Str "go",Space,Str "anywhere",Space,Str "in",Space,Str "the",Space,Str "document,",Space,Str "not",Space,Str "just",Space,Str "at",Space,Str "the",Space,Str "end."] ] , Note "longnote" [ Para [Str "Here's",Space,Str "the",Space,Str "other",Space,Str "note.",Space,Str "This",Space,Str "one",Space,Str "contains",Space,Str "multiple",Space,Str "blocks."] - , Para [Str "Caret",Space,Str "characters",Space,Str "are",Space,Str "used",Space,Str "to",Space,Str "indicate",Space,Str "that",Space,Str "the",Space,Str "blocks",Space,Str "all",Space,Str "belong",Space,Str "to",Space,Str "a",Space,Str "single",Space,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "block",Space,Str "quotes)."] + , Para [Str "Subsequent",Space,Str "blocks",Space,Str "are",Space,Str "indented",Space,Str "to",Space,Str "show",Space,Str "that",Space,Str "they",Space,Str "belong",Space,Str "to",Space,Str "the",Space,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "list",Space,Str "items)."] , CodeBlock " { <code> }" - , Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "use",Space,Str "a",Space,Str "caret",Space,Str "at",Space,Str "the",Space,Str "beginning",Space,Str "of",Space,Str "every",Space,Str "line,",Space,Str "as",Space,Str "with",Space,Str "blockquotes,",Space,Str "but",Space,Str "all",Space,Str "that",Space,Str "you",Space,Str "need",Space,Str "is",Space,Str "a",Space,Str "caret",Space,Str "at",Space,Str "the",Space,Str "beginning",Space,Str "of",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "the",Space,Str "block",Space,Str "and",Space,Str "any",Space,Str "preceding",Space,Str "blank",Space,Str "lines."] ] ] + , Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "indent",Space,Str "every",Space,Str "line,",Space,Str "but",Space,Str "you",Space,Str "can",Space,Str "also",Space,Str "be",Space,Str "lazy",Space,Str "and",Space,Str "just",Space,Str "indent",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "each",Space,Str "block."] ] ] diff --git a/tests/writer.rst b/tests/writer.rst index b1413db8d..6a9f3b997 100644 --- a/tests/writer.rst +++ b/tests/writer.rst @@ -697,7 +697,7 @@ Footnotes Here is a footnote reference [1]_, and another [longnote]_. This should *not* be a footnote reference, because it contains a -space^(my note). +space[^my note]. .. [1] Here is the footnote. It can go anywhere in the document, not just @@ -706,16 +706,15 @@ space^(my note). .. [longnote] Here's the other note. This one contains multiple blocks. - Caret characters are used to indicate that the blocks all belong to - a single footnote (as with block quotes). + Subsequent blocks are indented to show that they belong to the + footnote (as with list items). :: { <code> } - If you want, you can use a caret at the beginning of every line, as - with blockquotes, but all that you need is a caret at the beginning - of the first line of the block and any preceding blank lines. + If you want, you can indent every line, but you can also be lazy + and just indent the first line of each block. .. _embedded link: /url diff --git a/tests/writer.rtf b/tests/writer.rtf index 65ef026a8..0a1d4b5c8 100644 --- a/tests/writer.rtf +++ b/tests/writer.rtf @@ -369,9 +369,9 @@ http://example.com/ {\pard \f0 \sa180 \li0 \fi0 \b \fs36 Footnotes\par} {\pard \f0 \sa180 \li0 \fi0 Here is a footnote reference{\super\chftn}{\*\footnote\chftn\~\plain\pard {\pard \f0 \sa180 \li0 \fi0 Here is the footnote. It can go anywhere in the document, not just at the end.\par} }, and another{\super\chftn}{\*\footnote\chftn\~\plain\pard {\pard \f0 \sa180 \li0 \fi0 Here's the other note. This one contains multiple blocks.\par} -{\pard \f0 \sa180 \li0 \fi0 Caret characters are used to indicate that the blocks all belong to a single footnote (as with block quotes).\par} +{\pard \f0 \sa180 \li0 \fi0 Subsequent blocks are indented to show that they belong to the footnote (as with list items).\par} {\pard \f0 \sa180 \li0 \fi0 \f1 \{ <code> \}\par} -{\pard \f0 \sa180 \li0 \fi0 If you want, you can use a caret at the beginning of every line, as with blockquotes, but all that you need is a caret at the beginning of the first line of the block and any preceding blank lines.\par} -}. This should {\i not} be a footnote reference, because it contains a space^(my note).\par} +{\pard \f0 \sa180 \li0 \fi0 If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.\par} +}. This should {\i not} be a footnote reference, because it contains a space[^my note].\par} } diff --git a/tests/writer.smart.html b/tests/writer.smart.html index d206d4ece..a177b05cf 100644 --- a/tests/writer.smart.html +++ b/tests/writer.smart.html @@ -438,17 +438,17 @@ Cat & 1 \\ \hline <p>Here is a movie <img src="movie.jpg" alt="movie"> icon.</p> <hr /> <h1>Footnotes</h1> -<p>Here is a footnote reference<span class="pandocNoteRef"><a name="ref_1" href="#note_1">(1)</a></span>, and another<span class="pandocNoteRef"><a name="ref_longnote" href="#note_longnote">(longnote)</a></span>. This should <em>not</em> be a footnote reference, because it contains a space^(my note).</p> +<p>Here is a footnote reference<span class="pandocNoteRef"><a name="ref_1" href="#note_1">(1)</a></span>, and another<span class="pandocNoteRef"><a name="ref_longnote" href="#note_longnote">(longnote)</a></span>. This should <em>not</em> be a footnote reference, because it contains a space[^my note].</p> <div class="pandocNote"> <p class="first"><span class="pandocNoteMarker"><a name="note_1" href="#ref_1">(1)</a></span> Here is the footnote. It can go anywhere in the document, not just at the end.</p> </div> <div class="pandocNote"> <p class="first"><span class="pandocNoteMarker"><a name="note_longnote" href="#ref_longnote">(longnote)</a></span> Here’s the other note. This one contains multiple blocks.</p> -<p>Caret characters are used to indicate that the blocks all belong to a single footnote (as with block quotes).</p> +<p>Subsequent blocks are indented to show that they belong to the footnote (as with list items).</p> <pre><code> { <code> } </code></pre> -<p>If you want, you can use a caret at the beginning of every line, as with blockquotes, but all that you need is a caret at the beginning of the first line of the block and any preceding blank lines.</p> +<p>If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.</p> </div> </body> |