Citeproc: avoid duplicate classes and attributes on refs div.
This commit is contained in:
parent
e66960fe4f
commit
76e5f047b0
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,6 @@ import qualified Data.Text as T
|
|||
import System.FilePath (takeExtension)
|
||||
import Safe (lastMay, initSafe)
|
||||
|
||||
|
||||
processCitations :: PandocMonad m => Pandoc -> m Pandoc
|
||||
processCitations (Pandoc meta bs) = do
|
||||
style <- getStyle (Pandoc meta bs)
|
||||
|
@ -499,7 +498,8 @@ insertRefs refkvs refclasses meta refs bs =
|
|||
put True
|
||||
-- refHeader isn't used if you have an explicit references div
|
||||
let cs' = ordNub $ cs ++ refclasses
|
||||
return $ Div ("refs",cs' ++ refclasses,kvs ++ refkvs) (xs ++ refs)
|
||||
let kvs' = ordNub $ kvs ++ refkvs
|
||||
return $ Div ("refs",cs',kvs') (xs ++ refs)
|
||||
go x = return x
|
||||
|
||||
refTitle :: Meta -> Maybe [Inline]
|
||||
|
|
Loading…
Add table
Reference in a new issue