diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-08-13 23:20:22 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-08-13 23:20:22 -0700 |
commit | 0302330a27a3f6aba8063912b2877ad8ceb32c86 (patch) | |
tree | 38e6046b7baa66c95634514d5d41a95ea7b4c3c5 /src/Text/Pandoc/Writers | |
parent | 221390d0242597189b585b982ec0c03fba91e634 (diff) | |
download | pandoc-0302330a27a3f6aba8063912b2877ad8ceb32c86.tar.gz |
RST writer: ensure that `\ ` is inserted when needed...
...before Cite and Span elements that begin with a "complex"
element. Closes jgm/pandoc-citeproc#157.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/RST.hs | 2 |
1 files changed, 2 insertions, 0 deletions
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. |