Simplify fixAuthors (#6223)
This commit is contained in:
parent
09a5a1f447
commit
c812ff7e89
1 changed files with 1 additions and 6 deletions
|
@ -192,12 +192,7 @@ bodyPartsToMeta bps = do
|
|||
return $ Meta mp'
|
||||
|
||||
fixAuthors :: MetaValue -> MetaValue
|
||||
fixAuthors (MetaBlocks blks) =
|
||||
MetaList $ map g $ filter f blks
|
||||
where f (Para _) = True
|
||||
f _ = False
|
||||
g (Para ils) = MetaInlines ils
|
||||
g _ = MetaInlines []
|
||||
fixAuthors (MetaBlocks blks) = MetaList [MetaInlines ils | Para ils <- blks]
|
||||
fixAuthors mv = mv
|
||||
|
||||
isInheritedFromStyles :: (Eq (StyleName s), HasStyleName s, HasParentStyle s) => [StyleName s] -> s -> Bool
|
||||
|
|
Loading…
Add table
Reference in a new issue