diff options
1 files changed, 0 insertions, 17 deletions
| -rw-r--r-- | awk-edits/Svg-height-attrib.awk | 17 |
diff --git a/awk-edits/Svg-height-attrib.awk b/awk-edits/Svg-height-attrib.awk deleted file mode 100644 index 9e49769..0000000 --- a/awk-edits/Svg-height-attrib.awk +++ /dev/null @@ -1,17 +0,0 @@ -# .*html -# -# == About -# -# This script forces all images with SVG source, which aren't alone, to have -# a hard-coded height to them. The idea is to not make SVGs inside text take -# up the whole screen. -# This is mostly done for browsers that do not support CSS. - -/<p>.+<img src="[^"]*\.svg"/ || /src="[^"]*\.svg"[^>]*>.+<\/p>/ { - result = "" - while(match($0, /src="[^"]*\.svg"/)) { - result = result substr($0, 1, RSTART + RLENGTH - 1) " height=18"; - $0 = substr($0, RSTART + RLENGTH); - } - $0 = result $0; -} |