From 49b1bec85dbbede1bef574cd15c3b1348613b007 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Sun, 16 Jun 2024 16:54:48 +0300 Subject: [PATCH] Add format script Runs HTML Tidy. (The expected version is tidy-html5 from https://www.html-tidy.org/) --- scripts/format.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/format.sh diff --git a/scripts/format.sh b/scripts/format.sh new file mode 100755 index 0000000..c116dfc --- /dev/null +++ b/scripts/format.sh @@ -0,0 +1,13 @@ +#!/bin/sh +set -eu +cd "$(dirname "$0")" +cd .. +echo "Entering directory '$PWD'" +set -x +tidy \ + --indent yes \ + --quiet yes \ + --show-filename yes \ + --tidy-mark no \ + --write-back yes \ + www/*.html