Commits

Oben Sonne committed 0979910

Better dash replacement in macro name

This ensures, dashes in macro argument values get not replaced.

  • Participants
  • Parent commits a4b0d8e

Comments (0)

Files changed (1)

         if key in self:
             return super(MacroDict, self).__getitem__(key)
         
-        key = key.replace("-", "_")
-        
         # split macro into name and arguments
         name = key.split(None, 1)[0]
+        name = name.replace("-", "_")
         kwargs = {}
         for key, value in [kv.split("=", 1) for kv in key.split()[1:]]:
             if "," in value: