aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-01-19 20:39:58 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-01-19 20:39:58 -0800
commit5f98ac62e3f91a3301c13f17d9081b6ecb39e5a9 (patch)
tree9ed2e37a60225fd656b10b76c1db5deab0b12798 /src/Text
parent1c4d14cdcc60c1bfcc579a5b5ab154e8e62e54c7 (diff)
downloadpandoc-5f98ac62e3f91a3301c13f17d9081b6ecb39e5a9.tar.gz
JATS writer: Ensure that disp-quote is always wrapped in p.
Closes #7041.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/JATS.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/JATS.hs b/src/Text/Pandoc/Writers/JATS.hs
index b2266d179..c75d40745 100644
--- a/src/Text/Pandoc/Writers/JATS.hs
+++ b/src/Text/Pandoc/Writers/JATS.hs
@@ -156,9 +156,11 @@ wrappedBlocksToJATS needsWrap opts =
wrappedBlockToJATS b = do
inner <- blockToJATS opts b
return $
- if needsWrap b
+ if needsWrap b || isBlockQuote b -- see #7041
then inTags True "p" [("specific-use","wrapper")] inner
else inner
+ isBlockQuote (BlockQuote _) = True
+ isBlockQuote _ = False
-- | Auxiliary function to convert Plain block to Para.
plainToPara :: Block -> Block