aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2024-01-28 14:01:15 -0500
committertdro <tdro@users.noreply.github.com>2024-01-28 14:01:15 -0500
commit92d8f923660cf0b58395365ee1a170196e29d4d0 (patch)
tree833299c9b059b6ff8e0b4cccedc2184793c792b6
parentdb5e5c2d7c91e0efbc34999b9824e370aeee5f09 (diff)
downloaddotfiles-92d8f923660cf0b58395365ee1a170196e29d4d0.tar.gz
dotfiles-92d8f923660cf0b58395365ee1a170196e29d4d0.tar.bz2
dotfiles-92d8f923660cf0b58395365ee1a170196e29d4d0.zip
.config/tidy: Fix
-rw-r--r--.config/tidy.conf13
-rw-r--r--.config/tidy/url.conf (renamed from .config/tidy/default.conf)1
-rwxr-xr-x.local/bin/tidy-url2
-rwxr-xr-x.local/bin/wrappers/tidy3
4 files changed, 16 insertions, 3 deletions
diff --git a/.config/tidy.conf b/.config/tidy.conf
new file mode 100644
index 0000000..c031d89
--- /dev/null
+++ b/.config/tidy.conf
@@ -0,0 +1,13 @@
+accessibility-check: 0
+ascii-chars: yes
+clean: yes
+custom-tags: blocklevel
+drop-empty-elements: no
+fix-style-tags: no
+indent-spaces: 2
+indent: yes
+markup: no
+quiet: no
+show-body-only: yes
+vertical-space: yes
+wrap: 80
diff --git a/.config/tidy/default.conf b/.config/tidy/url.conf
index 67a11e7..a762628 100644
--- a/.config/tidy/default.conf
+++ b/.config/tidy/url.conf
@@ -2,6 +2,7 @@ accessibility-check: 0
ascii-chars: yes
clean: yes
custom-tags: blocklevel
+drop-empty-elements: no
fix-style-tags: no
indent-spaces: 2
indent: yes
diff --git a/.local/bin/tidy-url b/.local/bin/tidy-url
new file mode 100755
index 0000000..2aa400b
--- /dev/null
+++ b/.local/bin/tidy-url
@@ -0,0 +1,2 @@
+#!/bin/sh -eu
+curl --silent "$1" | tidy -config "$HOME/.config/tidy/url.conf"
diff --git a/.local/bin/wrappers/tidy b/.local/bin/wrappers/tidy
deleted file mode 100755
index d3a0aa4..0000000
--- a/.local/bin/wrappers/tidy
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh -eu
-$(which tidy --all | grep --invert-match "local/bin" | head -n 1) \
- -config "$HOME/.config/tidy/default.conf" "$@"