Page MenuHomePhabricator

Troubleshoot \n in console
Open, p3: NextPublic


The Ratscript console does not correctly parse \n into a newline when testing code (it takes it as literal), ie, if run in a tester with an assigned input string of "some\nthing", we correctly end up with three tokens

IDENTIFIER "some" at position 1:0
IDENTIFIER "thing" at position 2:0
ENDOFFILE "" at position 2:5

however if entered into the test console, we end up with

IDENTIFIER "some" at position 1:0
IDENTIFIER "thing" at position 1:6
ENDOFFILE "" at position 1:11

and an unexpected character result on \n.

Is this intended behavior? Probably not?

Troubleshoot and resolve.


Task Type
Proposed Urgency
g2: Minor
Triage Friction
Triage Relativity
Volatility (Caught At)
v2: SQA/Testing
o1: Coding

Event Timeline

ardunster triaged this task as p3: Next priority.Mar 20 2021, 12:35 PM
ardunster created this task.
jcmcdonald moved this task from Restricted Project Column to Backlog on the Ratscript [Project] board.Jun 19 2021, 9:51 AM
jcmcdonald edited projects, added Ratscript [Project]; removed Unknown Object (Project).