Skip to content

Commit

Permalink
Changed compatibility mode variable prefix from underscore to non-bre…
Browse files Browse the repository at this point in the history
…aking space
  • Loading branch information
RexScratch committed Jun 20, 2021
1 parent 6106728 commit 69d05b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sb3tosb2.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def mapArgs(self, opcode, block, blocks):

def varName(self, name):
if type(name) == str:
return ('_' if self.converter.compat else '') + name
return ('\xa0' if self.converter.compat else '') + name
else:
if self.converter.compat:
return ['concatenate:with:', '_', name]
return ['concatenate:with:', '\xa0', name]
else:
return name

Expand Down Expand Up @@ -1072,10 +1072,10 @@ def __init__(self):

def varName(self, name):
if type(name) == str:
return ('_' if self.compat else '') + name
return ('\xa0' if self.compat else '') + name
else:
if self.compat:
return ['concatenate:with:', '_', name]
return ['concatenate:with:', '\xa0', name]
else:
return name

Expand Down

0 comments on commit 69d05b4

Please sign in to comment.