Browse Source

Tolerate and normalize nested tokens.

scossu 11 months ago
parent
commit
5931fa8777
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scriptshifter/tables/__init__.py

+ 1 - 1
scriptshifter/tables/__init__.py

@@ -67,7 +67,7 @@ class Token(str):
     flags = 0
     flags = 0
 
 
     def __init__(self, content):
     def __init__(self, content):
-        self.content = content
+        self.content = str(content)  # Normalize in case a token is passed.
 
 
         # Assign special precedence based on token position.
         # Assign special precedence based on token position.
         # Standalone has precedence, then initial, then final, then medial.
         # Standalone has precedence, then initial, then final, then medial.