fix svg path placing

This commit is contained in:
Spirit 👾 2024-08-29 08:59:10 +03:00
parent 7f604771f1
commit 615777fb13

View File

@ -29,8 +29,8 @@ if [[ -f "$html_file" ]]; then
file = substr($0, RSTART+29, RLENGTH-31) file = substr($0, RSTART+29, RLENGTH-31)
print "´"file"´\n"substr($0, RSTART+31+length(file)) print "´"file"´\n"substr($0, RSTART+31+length(file))
} else if (match($0, /<link rel="icon" type="image\/svg\+xml" href="([^"]+\.svg)">/)) { } else if (match($0, /<link rel="icon" type="image\/svg\+xml" href="([^"]+\.svg)">/)) {
file = substr($0, RSTART+53, RLENGTH-55) file = substr($0, RSTART+44, RLENGTH-46)
print "´SVG:"file"´\n"substr($0, RSTART+55+length(file)) print "´SVG:"file"´\n"substr($0, RSTART+46+length(file))
} else { } else {
print $0 print $0
} }