diff --git a/cfg/std.cfg b/cfg/std.cfg
index 122ca89c9..3d2aed7ce 100644
--- a/cfg/std.cfg
+++ b/cfg/std.cfg
@@ -27,21 +27,21 @@
0-
-
- false
-
+
+ false
+
-
- false
-
+
+ false
+
0-
-
- false
-
+
+ false
+
diff --git a/runastyle b/runastyle
index f3c059d25..e8e5dbf26 100755
--- a/runastyle
+++ b/runastyle
@@ -35,3 +35,5 @@ astyle $style $options --recursive "samples/*.cpp"
# Convert tabs to spaces.. even in strings
# sed -i "s/\t/ /g" test/test*.cpp
+# strip useless whitespaces from config files
+sed -i "s/\ $//" cfg/*