diff --git a/scripts/xhtmlize-single-file.sh b/scripts/xhtmlize-single-file.sh index 5b73424..ad12cb7 100644 --- a/scripts/xhtmlize-single-file.sh +++ b/scripts/xhtmlize-single-file.sh @@ -31,7 +31,7 @@ sed 7d "$html_file" | xmllint --format --encode UTF-8 --noent - | sd '^\t' '' >" cat tmp.css # shellcheck disable=SC2016 # these are regex statements, not shell expressions tail -n +8 "$tmp_file" \ - | sd '
\n\t*<(code|samp) ' '<$1 ' \ + | sd '\n\t*<(code|samp)( |>)' '' \ | sd '.span itemprop="familyName"' ' ' ' ' \<$1$2' \ | sd '(?:\n)?(code|samp)>\n(?:[\t\s]*)?' '$1>