git.iko.soy/typeable/pandoc
on master help sign in
RST writer: ensure that `\ ` is inserted when needed...

...before Cite and Span elements that begin with a "complex" element. Closes jgm/pandoc-citeproc#157.

commit0302330a27a3f6aba8063912b2877ad8ceb32c86 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 13 Aug 2015, 23:20 (11 years ago) parent221390d
1 file changed+2
src/Text/Pandoc/Writers/RST.hs+2
src/Text/Pandoc/Writers/RST.hs+2
@@ -384,6 +384,8 @@ inlineListToRST lst =
384384 isComplex (Image _ _) = True
385385 isComplex (Code _ _) = True
386386 isComplex (Math _ _) = True
387+ isComplex (Cite _ (x:_)) = isComplex x
388+ isComplex (Span _ (x:_)) = isComplex x
387389 isComplex _ = False
388390
389391-- | Convert Pandoc inline element to RST.