OpenBullet2
OpenBullet2 copied to clipboard
[Bug]: ConstantString / error CS1010: Newline in constant
Version of the software
0.2.4
Operating system
Windows 10
Browser / Native
Chrome
What happened?
A bug happened!
[IDLE] CompilationErrorException: (3,64): error CS1010: Newline in constant
Relevant LoliCode if needed
BLOCK:ConstantString
value = $"a\n`]\nd\n[e]"
=> VAR @constantStringOutput
ENDBLOCK
Hello, thanks for pointing out the bug. I just wanted to say that without the interpolated mode (a.k.a. the leading $) it works as intended. I will have to look into this.
Use \\n instead \n then it could be fixed.
After testing I confirm you need to use \\n. If you use Stacker, it automatically converts \n to \\n but if you write it in LoliCode you have to remember to do it yourself. So props to @onisoc for their comment.