Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

Format html

Open Antiarchitect opened this issue 1 year ago • 1 comments

Format HTML:

find . -name '*.html' | while read -r file; do js-beautify -rn -f "${file}"; done

Remove trailing whitespaces:

find . -name '*.html' | while read -r file; do sed -i 's/[ \t]*$//' "${file}"; done

License Agreement for Contributions

By submitting this pull request, I acknowledge and agree that my contributions will be included in Stirling-PDF and that they can be relicensed in the future under MPL 2.0 (Mozilla Public License Version 2.0) license.

(This does not change the general open-source nature of Stirling-PDF, simply moving from one license to another license)

Antiarchitect avatar Jan 08 '24 08:01 Antiarchitect

A CI-integrated linter + editorconfig would be the solution.

PeterDaveHello avatar Jan 10 '24 12:01 PeterDaveHello

Closing PR due to difficulty to review but will add this as a task for us to automate on the HTML side

Frooodle avatar Feb 01 '24 00:02 Frooodle