From 49a7433cd7b6e4cd434d22cec8730a086906f345 Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 2 Apr 2022 17:05:02 -0400 Subject: .config: Add default html tidy configuration --- .config/tidy/default.conf | 12 ++++++++++++ .local/bin/wrappers/tidy | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 .config/tidy/default.conf create mode 100755 .local/bin/wrappers/tidy diff --git a/.config/tidy/default.conf b/.config/tidy/default.conf new file mode 100644 index 0000000..67a11e7 --- /dev/null +++ b/.config/tidy/default.conf @@ -0,0 +1,12 @@ +accessibility-check: 0 +ascii-chars: yes +clean: yes +custom-tags: blocklevel +fix-style-tags: no +indent-spaces: 2 +indent: yes +markup: no +quiet: yes +show-body-only: yes +vertical-space: yes +wrap: 80 diff --git a/.local/bin/wrappers/tidy b/.local/bin/wrappers/tidy new file mode 100755 index 0000000..d3a0aa4 --- /dev/null +++ b/.local/bin/wrappers/tidy @@ -0,0 +1,3 @@ +#!/bin/sh -eu +$(which tidy --all | grep --invert-match "local/bin" | head -n 1) \ + -config "$HOME/.config/tidy/default.conf" "$@" -- cgit v1.2.3