git.iko.soy/typeable/pandoc
on master help sign in
Tigthen up fix to #5446.

We only treat Span as transparent if it has no attributes.

commit144b2eabc2ae5478b3627c24eb2c5dbc23ff28a5 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 16 Apr 2019, 09:32 (8 years ago) parent32e358b
1 file changed+2−2
src/Text/Pandoc/Writers/RST.hs+2−2
src/Text/Pandoc/Writers/RST.hs+2−2
@@ -473,8 +473,8 @@ flatten outer
473473 (Quoted _ _, _) -> keep f i
474474 (_, Quoted _ _) -> keep f i
475475 -- spans are not rendered using RST inlines, so we can keep them
476− (Span _ _, _) -> keep f i
477− (_, Span _ _) -> keep f i
476+ (Span ("",[],[]) _, _) -> keep f i
477+ (_, Span ("",[],[]) _) -> keep f i
478478 -- inlineToRST handles this case properly so it's safe to keep
479479 (Link _ _ _, Image _ _ _) -> keep f i
480480 -- parent inlines would prevent links from being correctly