mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
ODT reader: deal gracefully with missing <office:font-face-decls/>.
This allows pandoc to parse ODT document produced by KDE's Calligra. Closes #4336.
This commit is contained in:
@@ -138,7 +138,7 @@ fontPitchReader = executeIn NsOffice "font-face-decls" (
|
||||
lookupDefaultingAttr NsStyle "font-pitch"
|
||||
))
|
||||
>>?^ ( M.fromList . foldl accumLegalPitches [] )
|
||||
)
|
||||
) `ifFailedDo` (returnV (Right M.empty))
|
||||
where accumLegalPitches ls (Nothing,_) = ls
|
||||
accumLegalPitches ls (Just n,p) = (n,p):ls
|
||||
|
||||
|
||||
Reference in New Issue
Block a user