Page MenuHomePhabricator

Troubleshoot \n in console
Open, p3: NextPublic

Description

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.

Details

Task Type
Bug
Proposed Urgency
Established
Gravity
g2: Minor
Friction
Triage Friction
Relativity
Triage Relativity
Volatility (Caught At)
v2: SQA/Testing
Origin
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).