aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-04-16 09:32:19 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-04-16 09:32:19 -0700
commit144b2eabc2ae5478b3627c24eb2c5dbc23ff28a5 (patch)
treec6d9dbfc608792acad6136b892171e37daa447d9 /src
parent32e358bfe920b6a0da34c2f3df29092452f27983 (diff)
downloadpandoc-144b2eabc2ae5478b3627c24eb2c5dbc23ff28a5.tar.gz
Tigthen up fix to #5446.
We only treat Span as transparent if it has no attributes.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/RST.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs
index c4fd27132..871cc3e5a 100644
--- a/src/Text/Pandoc/Writers/RST.hs
+++ b/src/Text/Pandoc/Writers/RST.hs
@@ -473,8 +473,8 @@ flatten outer
(Quoted _ _, _) -> keep f i
(_, Quoted _ _) -> keep f i
-- spans are not rendered using RST inlines, so we can keep them
- (Span _ _, _) -> keep f i
- (_, Span _ _) -> keep f i
+ (Span ("",[],[]) _, _) -> keep f i
+ (_, Span ("",[],[]) _) -> keep f i
-- inlineToRST handles this case properly so it's safe to keep
(Link _ _ _, Image _ _ _) -> keep f i
-- parent inlines would prevent links from being correctly