Docx reader: minor cleanup.
This commit is contained in:
parent
3f30455b49
commit
e6b04fa0cf
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue