diff --git a/tools/fmt-bindings b/tools/fmt-bindings index b784a0aa14..cdfd3e5869 100755 --- a/tools/fmt-bindings +++ b/tools/fmt-bindings @@ -258,6 +258,9 @@ while () { $gkey =~ s/^-//; $owner = $group_owners{$gkey}; + # strip white space from the binding; this allows reformatting the input file for legibility + $binding =~ s/^\s+|\s+$//g; + # substitute bindings $gtk_binding = $binding;