Merge pull request #1523 from jkr/dropCap2
Docx reader: Make dropcap combining more efficient.
This commit is contained in:
commit
712ae610e0
1 changed files with 3 additions and 1 deletions
|
@ -462,7 +462,9 @@ bodyPartToBlocks (Paragraph pPr parparts)
|
|||
bodyPartToBlocks (Paragraph pPr parparts) = do
|
||||
ils <- parPartsToInlines parparts >>= (return . normalizeSpaces)
|
||||
dropIls <- gets docxDropCap
|
||||
let ils' = reduceList $ dropIls ++ ils
|
||||
let ils' = case ils of
|
||||
(x:xs) -> reduceList (dropIls ++ [x]) ++ xs
|
||||
[] -> dropIls
|
||||
if dropCap pPr
|
||||
then do modify $ \s -> s { docxDropCap = ils' }
|
||||
return []
|
||||
|
|
Loading…
Reference in a new issue