From 0302330a27a3f6aba8063912b2877ad8ceb32c86 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 13 Aug 2015 23:20:22 -0700 Subject: RST writer: ensure that `\ ` is inserted when needed... ...before Cite and Span elements that begin with a "complex" element. Closes jgm/pandoc-citeproc#157. --- src/Text/Pandoc/Writers/RST.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs index 3dd2ed646..fae908f30 100644 --- a/src/Text/Pandoc/Writers/RST.hs +++ b/src/Text/Pandoc/Writers/RST.hs @@ -384,6 +384,8 @@ inlineListToRST lst = isComplex (Image _ _) = True isComplex (Code _ _) = True isComplex (Math _ _) = True + isComplex (Cite _ (x:_)) = isComplex x + isComplex (Span _ (x:_)) = isComplex x isComplex _ = False -- | Convert Pandoc inline element to RST. -- cgit v1.2.3