mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
Removed tidy html. (#6039)
This commit is contained in:
parent
8d014fb7e9
commit
d5fc948705
7 changed files with 0 additions and 132 deletions
|
@ -27,7 +27,6 @@ const fs = require('fs');
|
|||
const settings = require('../utils/Settings');
|
||||
const os = require('os');
|
||||
const hooks = require('../../static/js/pluginfw/hooks');
|
||||
const TidyHtml = require('../utils/TidyHtml');
|
||||
const util = require('util');
|
||||
const { checkValidRev } = require('../utils/checkValidRev');
|
||||
|
||||
|
@ -93,10 +92,8 @@ exports.doExport = async (req, res, padId, readOnlyId, type) => {
|
|||
const srcFile = `${tempDirectory}/etherpad_export_${randNum}.html`;
|
||||
await fsp_writeFile(srcFile, html);
|
||||
|
||||
// Tidy up the exported HTML
|
||||
// ensure html can be collected by the garbage collector
|
||||
html = null;
|
||||
await TidyHtml.tidy(srcFile);
|
||||
|
||||
// send the convert job to the converter (abiword, libreoffice, ..)
|
||||
const destFile = `${tempDirectory}/etherpad_export_${randNum}.${type}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue