From 0fda55e4fe5b1e53df511b71a735857148beec46 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Sun, 5 Jun 2022 19:26:45 -0500 Subject: [PATCH] ftm-bindings tool: strip whitespace in input files --- tools/fmt-bindings | 3 +++ 1 file changed, 3 insertions(+) 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;