Closed DaelonSuzuka closed 1 week ago
Breaks on lines in a multiline string:
func dump() -> String:
return """
{
level_file: '%s',
md5_hash: %s,
text: '%s',
level_size: %s,
world_pos: %s,
preview_size: %s,
preview_pos: %s,
preview_texture: %s,
explorer_layer: %s,
connections: %s,
}
""" % [level_file, md5_hash, text, level_size, world_pos, preview_size, preview_pos, preview_texture, explorer_layer, connections]
👇
func dump() -> String:
return """
{
level_file: '%s',
md5_hash:%s,
text: '%s',
level_size:%s,
world_pos:%s,
preview_size:%s,
preview_pos:%s,
preview_texture:%s,
explorer_layer:%s,
connections:%s,
}
""" % [level_file, md5_hash, text, level_size, world_pos, preview_size, preview_pos, preview_texture, explorer_layer, connections]
Thanks @limbonaut! That one's fixed now.
An issue with quotes and unique name specifier:
@onready var main_menu: Button = %"Main Menu"
👇
@onready var main_menu: Button = % "Main Menu"
That's all I found. Nice to see the old issues fixed, and it's shaping up to be a really solid formatter.
This introduces a new syntax for defining snapshot tests, and fixes at least #717, #734, #728.
Snapshot tests can now be defined in a single file using "blocks":
I also FINALLY found a solution to remove leading empty newlines from blocks: