diff options
Diffstat (limited to 'shared_utils.py')
-rw-r--r-- | shared_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared_utils.py b/shared_utils.py index f6cd4b7..9dd82e9 100644 --- a/shared_utils.py +++ b/shared_utils.py @@ -55,7 +55,7 @@ def validate_bit_range(msb: int, lsb: int, entry_value: int, line: str): # Split the instruction line into name and remaining part def parse_instruction_line(line: str) -> "tuple[str, str]": """Parse the instruction name and the remaining encoding details.""" - name, remaining = line.split(" ", 1) + name, remaining = line.replace("\t", " ").split(" ", 1) name = name.replace(".", "_") # Replace dots for compatibility remaining = remaining.lstrip() # Remove leading whitespace return name, remaining |