diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-01-19 20:39:58 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-01-19 20:39:58 -0800 |
commit | 5f98ac62e3f91a3301c13f17d9081b6ecb39e5a9 (patch) | |
tree | 9ed2e37a60225fd656b10b76c1db5deab0b12798 /src/Text/Pandoc | |
parent | 1c4d14cdcc60c1bfcc579a5b5ab154e8e62e54c7 (diff) | |
download | pandoc-5f98ac62e3f91a3301c13f17d9081b6ecb39e5a9.tar.gz |
JATS writer: Ensure that disp-quote is always wrapped in p.
Closes #7041.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Writers/JATS.hs | 4 |
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 |