git.iko.soy/typeable/pandoc
on master help sign in
Docx Reader: Normalize DefinitionLists

Previously DefinitionList had been left out of `blockNormalize`. Now it is included.

commit03af19a7e12ff3a7f0a396ebed73c6c17f12ad07 authorJesse Rosenthal <jrosenthal@jhu.edu> dateFri 20 Jun 2014, 10:16 (12 years ago) parent3da515b
1 file changed+2
src/Text/Pandoc/Readers/Docx.hs+2
src/Text/Pandoc/Readers/Docx.hs+2
@@ -161,6 +161,8 @@ blockNormalize (Header n attr ils) =
161161 Header n attr $ strNormalize $ stripSpaces ils
162162blockNormalize (Table ils align width hdr cells) =
163163 Table (strNormalize $ stripSpaces ils) align width hdr cells
164+blockNormalize (DefinitionList pairs) =
165+ DefinitionList $ map (\(ils, blklsts) -> (strNormalize (stripSpaces ils), blklsts)) pairs
164166blockNormalize blk = blk
165167
166168runToInlines :: ReaderOptions -> Docx -> Run -> [Inline]