summaryrefslogtreecommitdiff
path: root/source/html/html-doc.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-14 00:42:24 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-26 15:12:57 +0200
commit63689cbba531a26db2d8fa808a985a1c860bbd6f (patch)
tree921a009f184e216a10700b346ffd0330613f4bf0 /source/html/html-doc.c
parent445bcc8f464252649ae5d13add727420abe661d7 (diff)
downloadmupdf-63689cbba531a26db2d8fa808a985a1c860bbd6f.tar.xz
fb2: Add basic FictionBook support.
No images. The default stylesheet is preliminary, and will need improvements.
Diffstat (limited to 'source/html/html-doc.c')
-rw-r--r--source/html/html-doc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/html/html-doc.c b/source/html/html-doc.c
index f5bb42b8..e5c3d91e 100644
--- a/source/html/html-doc.c
+++ b/source/html/html-doc.c
@@ -170,12 +170,12 @@ htdoc_recognize(fz_context *doc, const char *magic)
if (ext)
{
if (!fz_strcasecmp(ext, ".xml") || !fz_strcasecmp(ext, ".xhtml") ||
- !fz_strcasecmp(ext, ".html") || !fz_strcasecmp(ext, ".htm"))
+ !fz_strcasecmp(ext, ".html") || !fz_strcasecmp(ext, ".htm") ||
+ !fz_strcasecmp(ext, ".fb2"))
return 100;
}
if (!strcmp(magic, "application/html+xml") || !strcmp(magic, "application/xml") || !strcmp(magic, "text/xml"))
return 100;
-
return 0;
}