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

More whitespace fixes

This commit is contained in:
Rohan Kumar 2022-06-02 21:48:23 -07:00
parent 576ab1453c
commit 03e292f57b
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -31,7 +31,8 @@ sed 7d "$html_file" | xmllint --format --encode UTF-8 --noent - -o "$tmp_file"
tail -n +8 "$tmp_file" \ tail -n +8 "$tmp_file" \
| sd '<pre(?: tabindex="0")?>\n\t*<code ' '<pre tabindex="0"><code ' \ | sd '<pre(?: tabindex="0")?>\n\t*<code ' '<pre tabindex="0"><code ' \
| sd '(?:\n)?</code>\n(?:[\t\s]*)?</pre>' '</code></pre>' \ | sd '(?:\n)?</code>\n(?:[\t\s]*)?</pre>' '</code></pre>' \
| sd '</span>.span itemprop="familyName"' '</span> <span itemprop="familyName"' | sd '</span>.span itemprop="familyName"' '</span> <span itemprop="familyName"' \
| sd '([a-z])<(data|time)' '$1 <$2'
} >>"$xhtml_file" } >>"$xhtml_file"
# replace the html file with the formatted xhtml5 file, excluding the xml declaration # replace the html file with the formatted xhtml5 file, excluding the xml declaration