Docx reader: minor cleanup.

This commit is contained in:
Jesse Rosenthal 2017-12-31 10:18:03 -05:00
parent 3f30455b49
commit e6b04fa0cf

View file

@ -344,7 +344,7 @@ blocksToInlinesWarn cmtId blks = do
"Docx comment " ++ cmtId ++ " will not retain formatting"
return $ blocksToInlines' blkList
-- The majority of work in this function is done in the primted
-- The majority of work in this function is done in the primed
-- subfunction `partPartToInlines'`. We make this wrapper so that we
-- don't have to modify `docxImmedPrevAnchor` state after every function.
parPartToInlines :: PandocMonad m => ParPart -> DocxContext m Inlines
@ -361,6 +361,7 @@ parPartToInlines parPart =
ils <- parPartToInlines' parPart
modify $ \s -> s{ docxImmedPrevAnchor = Nothing}
return ils
parPartToInlines' :: PandocMonad m => ParPart -> DocxContext m Inlines
parPartToInlines' (PlainRun r) = runToInlines r
parPartToInlines' (Insertion _ author date runs) = do