Skip to content

Commit 30514af

Browse files
authored
Merge pull request #276 from endlessm/extra-newlines
blocks: Remove extra newlines from entry blocks
2 parents 1a0cd11 + 851e5f7 commit 30514af

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

addons/block_code/blocks/communication/area2d_on_entered.tres

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ category = "Communication | Methods"
1111
type = 1
1212
variant_type = 0
1313
display_template = "when this node collides with [something: OBJECT]"
14-
code_template = "func _on_body_entered(something: Node2D):
15-
"
14+
code_template = "func _on_body_entered(something: Node2D):"
1615
defaults = {}
1716
signal_name = "body_entered"
1817
scope = ""

addons/block_code/blocks/communication/area2d_on_exited.tres

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ category = "Communication | Methods"
1111
type = 1
1212
variant_type = 0
1313
display_template = "when this node stops colliding with [something: OBJECT]"
14-
code_template = "func _on_body_exited(something: Node2D):
15-
"
14+
code_template = "func _on_body_exited(something: Node2D):"
1615
defaults = {}
1716
signal_name = "body_exited"
1817
scope = ""

addons/block_code/blocks/communication/rigidbody2d_on_entered.tres

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ category = "Communication | Methods"
1111
type = 1
1212
variant_type = 0
1313
display_template = "when this node collides with [something: OBJECT]"
14-
code_template = "func _on_body_entered(something: Node2D):
15-
"
14+
code_template = "func _on_body_entered(something: Node2D):"
1615
defaults = {}
1716
signal_name = "body_entered"
1817
scope = ""

addons/block_code/blocks/communication/rigidbody2d_on_exited.tres

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ category = "Communication | Methods"
1111
type = 1
1212
variant_type = 0
1313
display_template = "when this node stops colliding with [something: OBJECT]"
14-
code_template = "func _on_body_exited(something: Node2D):
15-
"
14+
code_template = "func _on_body_exited(something: Node2D):"
1615
defaults = {}
1716
signal_name = "body_exited"
1817
scope = ""

tests/test_code_generation.gd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ func test_signal_script():
232232
body_entered.connect(_on_body_entered)
233233
234234
func _on_body_entered(something: Node2D):
235-
236235
print('Body entered!')
237236
238237
"""

0 commit comments

Comments
 (0)