Be a little more flexible with order strings
[bitfield] / bitfield
index 5ade7af4fac6e03832e4d294cc7bae86aa14e284..3b34aeb5b7514befdd0b9edc277cec373f9997fa 100644 (file)
--- a/bitfield
+++ b/bitfield
@@ -178,6 +178,8 @@ def parse_config(bnf, regs, file):
                                                + "fields in %s") % id)
 
                                order_str = t[1].strip().lower()
+                               order_str = order_str.replace(' ', '-')
+
                                if order_str not in order_map.keys():
                                        raise ConfigurationError(file,
                                                "Invalid bit order %s in %s" % \