1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

re-introduce awk cmd previously thought obsolete

This commit is contained in:
Rohan Kumar 2023-11-27 12:27:14 -08:00
parent 03a1c18191
commit 26025d928c
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

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