Comment running on two lines?


For some reason my comment on line 16 runs over 2 lines?

You probably edited the Text Wrapping in Studio Settings. Just go to Settings > Studio > Text Wrapping.

Should it be true or false? I haven’t edited studios settings in months

I believe it should be false. (30char)

Ye it is set to false
]30 character

Did you pressed Shift + Enter? It may be an invalid unicode.

Copy your script delete it then paste it, that should fix it

CTRL + C > CTRL + A > DEL > CTRL + Z

It looks nothing like a Unicode character, haven’t been able to reproduce that with TextWrapping either.

@NinjoOnline
Just select it and press Ctrl+Shift+C twice or try pasting the code in another script.

Edit: There probably is a Unicode character involved though it’s hard to replicate or discern it without knowing how your code was written or additional information from the Op.

Edit2: Yeah I know I just tried, all you need to do is press Shift + Enter with your cursor at the end of a comment.

How would you know that? There’s plenty of whitespace characters in unicode which are not rendered by the studio text editor but have various effects, including the regular whitespace and the newline itself.
Especially because I can replicate the exact problem OP is having using a rarely-used unicode character (LINE SEPERATOR, U+2028).

Regardless, the remedy is just putting your text cursor after the P and hitting delete. If that doesn’t work, delete the two lines and the surrounding newlines and write them again. Uncommenting or copy-pasting the text segment won’t do anything if you are actually having the problem I observed.

Edit: It’s actually trivial to replicate! @Quwanterz has already answered the question in his last post. Pressing Shift+Enter pastes a line seperator, which is the cause of OP’s issue.

1 Like