Merge pull request #2149 from ether/dont-use-abiword-for-html
abiword shouldnt be used for HTML native documentspull/2175/head
commit
cd294c608b
|
@ -114,7 +114,9 @@ exports.doImport = function(req, res, padId)
|
|||
//convert file to html
|
||||
function(callback) {
|
||||
if(!importHandledByPlugin){
|
||||
if (abiword) {
|
||||
var fileEnding = path.extname(srcFile).toLowerCase();
|
||||
var fileIsHTML = (fileEnding === ".html" || fileEnding === ".htm");
|
||||
if (abiword && !fileIsHTML) {
|
||||
abiword.convertFile(srcFile, destFile, "htm", function(err) {
|
||||
//catch convert errors
|
||||
if(err) {
|
||||
|
|
Loading…
Reference in New Issue