diff --git a/.github/workflows/strip-font-data.yml b/.github/workflows/strip-font-data.yml index 6959cabf..94c4ff4a 100644 --- a/.github/workflows/strip-font-data.yml +++ b/.github/workflows/strip-font-data.yml @@ -21,7 +21,7 @@ jobs: echo "Processing $font..." cat "$font" | \ grep -v "^ *_typelessdata: " | \ - perl -ne '$l = $_; if (defined($s) && !/^$s[ -]/) { print "# clear\n"; $s = undefined; } if (/^([ \t]+)(m_GlyphTable:|m_FreeGlyphRects:|m_CharacterTable:)/) { $s = $1; print "$1$2 []\n" }; print $l if !defined($s);' \ + perl -ne '$l = $_; if (defined($s) && !/^$s[ -]/) { undef $s; } if (/^([ \t]+)(m_GlyphTable:|m_FreeGlyphRects:|m_CharacterTable:)/) { $s = $1; print "$1$2 []\n" }; print $l if !defined($s);' \ "$font" > "$font.tmp" mv "$font.tmp" "$font" -fv done