switch back to soffice standard converter; dont swallow newlines

This commit is contained in:
webzwo0i 2020-09-14 12:30:00 +02:00
parent 2e48b88e70
commit d662bcd2fd
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ exports.setPadHTML = function(pad, html)
rehype()
.use(format, opts)
.process(html, function(err, output){
html = String(output).replace(/(\r\n|\n|\r)/gm,"");
//html = String(output).replace(/(\r\n|\n|\r)/gm,"");
})
var $ = cheerio.load(html);

View file

@ -43,7 +43,7 @@ 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"
//type = "html:XHTML Writer File:UTF8"
// PDF files need to be converted with LO Draw ref https://github.com/ether/etherpad-lite/issues/4151
if (path.extname(srcFile).toLowerCase() === ".pdf") {