From e5254a2758e0afd78fc97e7032124223b40e5435 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Fri, 21 Nov 2008 00:04:36 +0000 Subject: #8972 Save to OpenDocument if we cannot export in the original format --- diff --git a/AbiWordActivity.py b/AbiWordActivity.py index 7112f35..54a0a62 100644 --- a/AbiWordActivity.py +++ b/AbiWordActivity.py @@ -313,7 +313,9 @@ class AbiWordActivity (Activity): logging.debug('AbiWordActivity.write_file') # check if we have a default mimetype; if not, fall back to OpenDocument - if 'mime_type' not in self.metadata or self.metadata['mime_type'] == '': + # also fallback if we know we cannot export in that format + if 'mime_type' not in self.metadata or self.metadata['mime_type'] == '' or \ + self.metadata['mime_type'] == 'application/msword': self.metadata['mime_type'] = 'application/vnd.oasis.opendocument.text' # if we were viewing the source of a file, -- cgit v0.9.1