From 9ae88a5bef9b2ecdd05813165dadf49b50e35b63 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sat, 25 Nov 2023 18:40:29 -0800 Subject: [PATCH] Remove obsolete awk cmd from post-processing --- scripts/xhtmlize-single-file.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/xhtmlize-single-file.sh b/scripts/xhtmlize-single-file.sh index 39e5a4f..b2d1289 100644 --- a/scripts/xhtmlize-single-file.sh +++ b/scripts/xhtmlize-single-file.sh @@ -44,6 +44,5 @@ sed 7d "$html_file" | xmllint --format --encode UTF-8 --noent - | tail -n +2 >"$ -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' + "$tmp_file" } >"$html_file"