aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pandoc.cabal6
-rw-r--r--src/Text/Pandoc/ImageSize.hs3
2 files changed, 5 insertions, 4 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index a0312e95b..e35a76caf 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -248,7 +248,7 @@ Library
tagsoup >= 0.13.1 && < 0.14,
base64-bytestring >= 0.1 && < 1.1,
zlib >= 0.5 && < 0.6,
- highlighting-kate >= 0.5.8.2 && < 0.6,
+ highlighting-kate >= 0.5.8.3 && < 0.6,
data-default >= 0.4 && < 0.6,
temporary >= 1.1 && < 1.3,
blaze-html >= 0.5 && < 0.8,
@@ -352,7 +352,7 @@ Executable pandoc
text >= 0.11 && < 1.2,
bytestring >= 0.9 && < 0.11,
extensible-exceptions >= 0.1 && < 0.2,
- highlighting-kate >= 0.5.8.2 && < 0.6,
+ highlighting-kate >= 0.5.8.3 && < 0.6,
aeson >= 0.7.0.5 && < 0.8,
yaml >= 0.8.8.2 && < 0.9,
containers >= 0.1 && < 0.6,
@@ -395,7 +395,7 @@ Test-Suite test-pandoc
directory >= 1 && < 1.3,
filepath >= 1.1 && < 1.4,
process >= 1 && < 1.3,
- highlighting-kate >= 0.5.8.2 && < 0.6,
+ highlighting-kate >= 0.5.8.3 && < 0.6,
Diff >= 0.2 && < 0.4,
test-framework >= 0.3 && < 0.9,
test-framework-hunit >= 0.2 && < 0.4,
diff --git a/src/Text/Pandoc/ImageSize.hs b/src/Text/Pandoc/ImageSize.hs
index a6d076fa9..9e6b457c0 100644
--- a/src/Text/Pandoc/ImageSize.hs
+++ b/src/Text/Pandoc/ImageSize.hs
@@ -217,7 +217,7 @@ exifHeader hdr = do
numentries <- getWord16
let ifdEntry = do
tag <- getWord16 >>= \t ->
- maybe (fail $ "Unknown tag type " ++ show t) return
+ maybe (return UnknownTagType) return
(M.lookup t tagTypeTable)
dataFormat <- getWord16
numComponents <- getWord32
@@ -337,6 +337,7 @@ data TagType = ImageDescription
| SensingMethod
| FileSource
| SceneType
+ | UnknownTagType
deriving (Show, Eq, Ord)
tagTypeTable :: M.Map Word16 TagType