From dd6cf95e8c5b98a71d4a80f8bd0f4377777e672c Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 15 Nov 2023 09:32:00 -0800 Subject: [PATCH] fix code block whitespace again --- scripts/xhtmlize-single-file.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/xhtmlize-single-file.sh b/scripts/xhtmlize-single-file.sh index fa91ad4..4d0c635 100644 --- a/scripts/xhtmlize-single-file.sh +++ b/scripts/xhtmlize-single-file.sh @@ -42,6 +42,7 @@ sed 7d "$html_file" | xmllint --format --encode UTF-8 --noent - | tail -n +2 >"$ -E \ -e 's|([a-z])(]*rel="(nofollow ugc|ugc nofollow)"([^>]*)?>liked)# \1#' \ + -e 's#^[\t\s]*<(code|/pre)#<\1#' \ "$tmp_file" \ | awk '/^<\/code>/{printf "%s",$0;next}7' } >"$html_file"