git.iko.soy/typeable/pandoc
on master help sign in
ConTeXt writer: Don't add cr at end of inline footnote.
commit8dcc67a993adb2f5b23f1f4a69a4f7f529849eac authorJohn MacFarlane <jgm@berkeley.edu> dateSat 22 Jan 2011, 12:17 (16 years ago) parent1525085
2 files changed+6−8
src/Text/Pandoc/Writers/ConTeXt.hs+1−1 tests/writer.context+5−7
src/Text/Pandoc/Writers/ConTeXt.hs+1−1
@@ -284,4 +284,4 @@ inlineToConTeXt (Image _ (src, _)) = do
284284inlineToConTeXt (Note contents) = do
285285 contents' <- blockListToConTeXt contents
286286 return $ text "\\footnote{" <>
287− nest 2 contents' <> char '}' <> cr
287+ nest 2 contents' <> char '}'
tests/writer.context+5−7
@@ -866,9 +866,8 @@ Here is a movie {\externalfigure[movie.jpg]} icon.
866866
867867Here is a footnote reference,\footnote{Here is the footnote. It can go
868868 anywhere after the footnote reference. It need not be placed at the end of
869− the document.}
870− and another.\footnote{Here's the long note. This one contains multiple
871− blocks.
869+ the document.} and another.\footnote{Here's the long note. This one contains
870+ multiple blocks.
872871
873872 Subsequent blocks are indented to show that they belong to the footnote (as
874873 with list items).
@@ -878,10 +877,9 @@ Here is a footnote reference,\footnote{Here is the footnote. It can go
878877 \stoptyping
879878
880879 If you want, you can indent every line, but you can also be lazy and just
881− indent the first line of each block.}
882− This should {\em not} be a footnote reference, because it contains a
883−space.{[}\letterhat{}my note{]} Here is an inline note.\footnote{This is
884− {\em easier} to type. Inline notes may contain
880+ indent the first line of each block.} This should {\em not} be a footnote
881+reference, because it contains a space.{[}\letterhat{}my note{]} Here is an
882+inline note.\footnote{This is {\em easier} to type. Inline notes may contain
885883 \useURL[31][http://google.com][][links]\from[31] and \type{]} verbatim
886884 characters, as well as {[}bracketed text{]}.}
887885