nvramtool: Allow spaces in enumeration names

Change-Id: Id526e74f06fb15d4692d7b6edc8b5863f2d42c50
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/901
Tested-by: build bot (Jenkins)
diff --git a/util/nvramtool/accessors/layout-text.c b/util/nvramtool/accessors/layout-text.c
index 5f7cade..cbe698c 100644
--- a/util/nvramtool/accessors/layout-text.c
+++ b/util/nvramtool/accessors/layout-text.c
@@ -149,7 +149,7 @@
     /* followed by one or more whitespace characters */
     "[[:space:]]+"
     /* followed by a chunk of nonwhitespace for text field */
-    "([^[:space:]]+)"
+    "([[:print:]]*[^[:space:]])"
     /* followed by optional whitespace */
     "[[:space:]]*$";