mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
reduce one indent level
This commit is contained in:
parent
a910432c5f
commit
8f488a7671
2 changed files with 3 additions and 2 deletions
|
@ -39,12 +39,13 @@ run_xmllint() {
|
|||
# delete the stylesheet from the html file; we'll re-insert it later.
|
||||
sed 7d "$html_file" | run_xmllint | tail -n +2 >"$tmp_file"
|
||||
{
|
||||
head -n7 "$tmp_file"
|
||||
head -n7 "$tmp_file" | sed -e 's/^\t//'
|
||||
cat "${OUTPUT_DIR:?}/tmp.css"
|
||||
# shellcheck disable=SC2016 # these are regex statements, not shell expressions
|
||||
#shellcheck source=/home/rkumar/Executables/ghq/git.sr.ht/~seirdy/seirdy.one/scripts/xhtmlize.sh
|
||||
sed \
|
||||
-e '1,7d' \
|
||||
-e 's/^\t//' \
|
||||
-e 's|</span><span itemprop="familyName"|</span>\ <span itemprop="familyName"|' \
|
||||
-e 's|class="u-photo photo"[^<]*<|class="u-photo photo"/> <|' \
|
||||
-e 's|<pre>|<pre tabindex="0">|' \
|
||||
|
|
|
@ -16,7 +16,7 @@ sed -i -e 's|<html lang="en-us"|<html xmlns="http://www.w3.org/1999/xhtml" lang=
|
|||
mv "$output_dir/resume/index.html" "$temp_resume"
|
||||
|
||||
{
|
||||
printf '\t' && sed -e '7q;d' "$output_dir/index.html"
|
||||
sed -e '7q;d' "$output_dir/index.html"
|
||||
} >"$output_dir/tmp.css"
|
||||
cleanup() {
|
||||
rm -f "$output_dir/tmp.css"
|
||||
|
|
Loading…
Reference in a new issue