Docx Parser: Produce endnotes.
The parser had been changing footnotes and endnotes into footnotes. This isn't a problem, because pandoc collapses them, but the parser should maintain as much of the docx structure as is collapsed, and let the toplevel reader worry about how to translate it into Pandoc. (This would be an issue when, as is planned, the docx parser spins off into its own module.) The output is the same, so no test change is required.
This commit is contained in:
parent
1b9371cfdf
commit
3a411c3307
1 changed files with 2 additions and 2 deletions
|
@ -857,8 +857,8 @@ elemToRun ns element
|
|||
notes <- asks envNotes
|
||||
case lookupEndnote enId notes of
|
||||
Just e -> do bps <- mapD (elemToBodyPart ns) (elChildren e)
|
||||
return $ Footnote bps
|
||||
Nothing -> return $ Footnote []
|
||||
return $ Endnote bps
|
||||
Nothing -> return $ Endnote []
|
||||
elemToRun ns element
|
||||
| isElem ns "w" "r" element = do
|
||||
runElems <- elemToRunElems ns element
|
||||
|
|
Loading…
Reference in a new issue