Skip to content

\n doesn't get respected in the middle of strings/f-strings #249

Open
@tyeth

Description

@tyeth

CircuitPython Version

Adafruit CircuitPython 9.2.0-alpha.2351-27-g8efae20769 on 2024-09-06; Adafruit Feather HUZZAH32 with ESP32
Board ID:adafruit_feather_huzzah32

Workflow(s)

USB

Browser(s)

chrome win11 Version 128.0.6613.120 (Official Build) (64-bit) - an update is ready to install though

Also using en-gb locale for browser.

Console Log

no error, just previous "Current File Changed to: /code.py"

Steps

connect with usb workflow, using esp32 v1 huzzah32 feather, paste this into code.py, save, open a different file (boot_log.txt) and then code.py again (don't think it matters about loading a different file first - a reload of same code.py via open dialog is fine) and notice corruption where the \n's should be. I found other weird corruption at my import lines with a different example (but with \n in data still).

Description

There is \n corruption.

Additional information

Sometimes it corrupts earlier in the import lines (unreproducible), seemed to just not save all the data or have some chunk missing/corrupted by escape characters later on in the code (which had \n's used in strings).

Metadata

Metadata

Assignees

No one assigned

    Labels

    betaIssue is available in betabugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions