Muse reader: get rid of non-exhaustive pattern match warning

This commit is contained in:
mb21 2018-06-01 15:35:14 +02:00
parent 5fbc981fc2
commit 0fc7d38544

View file

@ -974,7 +974,7 @@ image = try $ do
Just 'r' -> ["align-right"]
Just 'l' -> ["align-left"]
Just 'f' -> []
Nothing -> []
_ -> []
return $ B.imageWith ("", alignClass, widthAttr) (url ++ ext) mempty <$> fromMaybe (return mempty) content
where -- Taken from muse-image-regexp defined in Emacs Muse file lisp/muse-regexps.el
imageExtensions = [".eps", ".gif", ".jpg", ".jpeg", ".pbm", ".png", ".tiff", ".xbm", ".xpm"]