1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-24 17:52:11 +00:00

Remove obsolete awk cmd from post-processing

This commit is contained in:
Rohan Kumar 2023-11-25 18:40:29 -08:00
parent 74ff22b8f4
commit 9ae88a5bef
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -44,6 +44,5 @@ sed 7d "$html_file" | xmllint --format --encode UTF-8 --noent - | tail -n +2 >"$
-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'
"$tmp_file"
} >"$html_file"