aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Readers/Docx.hs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Text/Pandoc/Readers/Docx.hs b/src/Text/Pandoc/Readers/Docx.hs
index 6b375a51c..e1a8066ba 100644
--- a/src/Text/Pandoc/Readers/Docx.hs
+++ b/src/Text/Pandoc/Readers/Docx.hs
@@ -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