happy
parent
2ef773b4fe
commit
7ee12afe20
|
|
@ -1,9 +1,19 @@
|
|||
#! /bin/bash
|
||||
set -o pipefail
|
||||
|
||||
echo '> copy outer HTML of html just inside iframe' >&2
|
||||
|
||||
font_family="$(cat resume.html | grep -o 'font-family[^;]*' | tail -n 1 | awk '{print $NF}')"
|
||||
cat resume.html \
|
||||
| sed 's/>...<\/text/> - <\/text/g' \
|
||||
| sed 's/overflow: hidden;/margin: auto !important; padding-bottom: 2em !important;/g' \
|
||||
| sed 's/padding: 0px 60pt;/padding: 0px 12pt;/' \
|
||||
| sed 's/padding: 0px 60pt;/padding: 0px 48pt;/' \
|
||||
| sed 's/margin-top: 15pt;/margin-top: 20pt;/g' \
|
||||
| sed 's/margin-top: 12pt;/margin-top: 17pt;/g' \
|
||||
| sed 's/margin-top: 8pt;/margin-top: 12pt;/g' \
|
||||
| sed 's/margin-top: 6pt;/margin-top: 10pt;/g' \
|
||||
| sed 's#"/fonts/#"https://www.open-resume.com/fonts/#g' \
|
||||
| sed 's#<link [^>]*as="font"[^>]*/fonts/[^L][^>]*>##g' \
|
||||
> resume.html.2 \
|
||||
|| rm resume.html.2
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue