[lasem] test: fix mathml mime type detection.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] test: fix mathml mime type detection.
- Date: Wed, 21 Apr 2010 08:51:38 +0000 (UTC)
commit 3cc72ce3dd39f68767844b2dce7c491f0da4fc0b
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed Apr 21 10:49:42 2010 +0200
test: fix mathml mime type detection.
It looks like the mime type for mml files has changed.
src/lasemtest.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lasemtest.c b/src/lasemtest.c
index fac36e1..bc74842 100644
--- a/src/lasemtest.c
+++ b/src/lasemtest.c
@@ -106,7 +106,7 @@ lasem_test_render (char const *filename)
mime = g_content_type_guess (filename, NULL, 0, NULL);
is_svg = strcmp (mime, "image/svg+xml") == 0;
- is_mathml = strcmp (mime, "text/mathml") == 0;
+ is_mathml = (strcmp (mime, "text/mathml") == 0) || (strcmp (mime, "application/mathml+xml") == 0);
is_xml = is_svg || is_mathml;
g_printf ("\trender %s (%s)\n", filename, mime);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]