Skip to content

Commit fd87f20

Browse files
Simplify text insertion
1 parent 295f2f2 commit fd87f20

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lang/tags/comment_block.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def code_comment_block_at_line_end(text: str):
5151
def code_block_comment_inline(text: str):
5252
"""Inserts an inline block comment"""
5353
actions.user.code_comment_block_prefix()
54-
actions.key("space")
55-
actions.insert(text)
56-
actions.key("space")
54+
actions.insert(f" {text} ")
5755
actions.user.code_comment_block_suffix()
5856

5957

0 commit comments

Comments
 (0)