From abe266d74b46955b958ffe9561cc3e88b44aa7dd Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 7 Apr 2013 21:14:31 -0400 Subject: [PATCH] Recognize application/xhtml+xml as snapshot --- chrome/content/zotero/xpcom/translation/translate_item.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js index 3efa9a578..430b60861 100644 --- a/chrome/content/zotero/xpcom/translation/translate_item.js +++ b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -336,7 +336,9 @@ Zotero.Translate.ItemSaver.prototype = { // Determine whether to save an attachment if(attachment.snapshot !== false) { if(attachment.document - || (attachment.mimeType && attachment.mimeType == "text/html")) { + || (attachment.mimeType && + (attachment.mimeType === "text/html" + || attachment.mimeType == "application/xhtml+xml"))) { if(!Zotero.Prefs.get("automaticSnapshots")) return; } else { if(!Zotero.Prefs.get("downloadAssociatedFiles")) return;