Skip to content

Commit

Permalink
Removed tidy html.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Nov 15, 2023
1 parent 8d014fb commit 11d81a4
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 132 deletions.
4 changes: 0 additions & 4 deletions doc/docker.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,6 @@ For the editor container, you can also make it full width by adding `full-width-
| This is the absolute path to the soffice executable. LibreOffice can be used in lieu of Abiword to export pads. Setting it to null disables LibreOffice exporting.
| `null`

| `TIDY_HTML`
| Path to the Tidy executable. Tidy is used to improve the quality of exported pads. Setting it to null disables Tidy.
| `null`

| `ALLOW_UNKNOWN_FILE_ENDS`
| Allow import of file types other than the supported ones: txt, doc, docx, rtf, odt, html & htm
| `true`
Expand Down
8 changes: 0 additions & 8 deletions settings.json.docker
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,6 @@
*/
"soffice": "${SOFFICE:null}",

/*
* Path to the Tidy executable.
*
* Tidy is used to improve the quality of exported pads.
* Setting it to null disables Tidy.
*/
"tidyHtml": "${TIDY_HTML:null}",

/*
* Allow import of file types other than the supported ones:
* txt, doc, docx, rtf, odt, html & htm
Expand Down
8 changes: 0 additions & 8 deletions settings.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -323,14 +323,6 @@
*/
"soffice": null,

/*
* Path to the Tidy executable.
*
* Tidy is used to improve the quality of exported pads.
* Setting it to null disables Tidy.
*/
"tidyHtml": null,

/*
* Allow import of file types other than the supported ones:
* txt, doc, docx, rtf, odt, html & htm
Expand Down
3 changes: 0 additions & 3 deletions src/node/handler/ExportHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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}`;
Expand Down
5 changes: 0 additions & 5 deletions src/node/utils/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,6 @@ exports.abiword = null;
*/
exports.soffice = null;

/**
* The path of the tidy executable
*/
exports.tidyHtml = null;

/**
* Should we support none natively supported file types on import?
*/
Expand Down
43 changes: 0 additions & 43 deletions src/node/utils/TidyHtml.js

This file was deleted.

61 changes: 0 additions & 61 deletions src/tests/backend/specs/api/tidy.js

This file was deleted.

0 comments on commit 11d81a4

Please sign in to comment.