Skip to content

How should MeTTa handle escaped characters such as new line? #619

Closed
@ngeiswei

Description

What is the problem?

Escaped characters are mishandled, for instance \ disappears from the string.

How to reproduce the problem?

Try the following

! "1\n2"

What should be normally expected?

I suppose the escaped character should either be left untouched, like

["1\n2"]

or parsed and displayed like

["1
2"]

What do you get instead?

["1n2"]

What else do you have to say?

The same problem occurs with other escaped characters like \t. The misbehavior is also observed when using println!.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions