mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
fix code block whitespace again
This commit is contained in:
parent
4910a7c2c1
commit
dd6cf95e8c
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue