You've already forked PythonLib
mirror of
https://github.com/lifebottle/PythonLib.git
synced 2026-02-13 15:25:50 -08:00
Battle Sub names can be plaintext too
This commit is contained in:
@@ -184,7 +184,10 @@ def text_to_cstr(text: str, is_name: bool = False) -> str:
|
||||
elif token == "\n":
|
||||
output += " NL "
|
||||
else:
|
||||
output += f'"{token}"'
|
||||
if is_name and token != "&":
|
||||
output += f'NAME("{token}")'
|
||||
else:
|
||||
output += f'"{token}"'
|
||||
|
||||
return output.strip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user