From 935d10769df682fa08d947a873ca7665136e0b79 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 2 Apr 2021 17:04:55 -0700 Subject: Fix "phrase" in DocBook: take classes from "role" not "class". Closes #7195. Revises #6438. --- src/Text/Pandoc/Readers/DocBook.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs index 4f525cfb1..ac3caa2c0 100644 --- a/src/Text/Pandoc/Readers/DocBook.hs +++ b/src/Text/Pandoc/Readers/DocBook.hs @@ -1075,7 +1075,7 @@ parseInline (Elem e) = return $ spanWith (attrValue "id" e, [], []) mempty "phrase" -> do let ident = attrValue "id" e - let classes = T.words $ attrValue "class" e + let classes = T.words $ attrValue "role" e if ident /= "" || classes /= [] then innerInlines (spanWith (ident,classes,[])) else innerInlines id -- cgit v1.2.3