From 1a97839a8a4132df97dea9bbc7456bed1d3b1a65 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 30 Aug 2020 11:29:35 +0100 Subject: [PATCH] bugfix/import: doc import bugfix --- src/node/utils/LibreOffice.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/node/utils/LibreOffice.js b/src/node/utils/LibreOffice.js index 12a98fa48..dfbee8fa5 100644 --- a/src/node/utils/LibreOffice.js +++ b/src/node/utils/LibreOffice.js @@ -43,7 +43,9 @@ exports.convertFile = function(srcFile, destFile, type, callback) { if (type === "html") { // "html:XHTML Writer File:UTF8" does a better job than normal html exports - type = "html:XHTML Writer File:UTF8"; + if (path.extname(srcFile).toLowerCase() === ".doc") { + type = "html"; + } // PDF files need to be converted with LO Draw ref https://github.com/ether/etherpad-lite/issues/4151 if (path.extname(srcFile).toLowerCase() === ".pdf") { type = "html:XHTML Draw File"