1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

fix code block whitespace again

This commit is contained in:
Rohan Kumar 2023-11-15 09:32:00 -08:00
parent 4910a7c2c1
commit dd6cf95e8c
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -42,6 +42,7 @@ sed 7d "$html_file" | xmllint --format --encode UTF-8 --noent - | tail -n +2 >"$
-E \
-e 's|([a-z])<data|\1 <data|' \
-e 's#</span>(<a[^>]*rel="(nofollow ugc|ugc nofollow)"([^>]*)?>liked</a>)#</span> \1#' \
-e 's#^[\t\s]*<(code|/pre)#<\1#' \
"$tmp_file" \
| awk '/^<\/code>/{printf "%s",$0;next}7'
} >"$html_file"