Skip to content

Tab-indented multiline-strings are turned into single-line strings #116

@infinisil

Description

@infinisil

Input (note that every line starts with a single tab character):

	''
	  foo
	  bar
	''

Expected output:

''
  foo
  bar
''

Actual output:

"  foo\n  bar\n"

This can be disastrous: https://gitlab.com/Fuzen-py/configsreborn/-/blob/2a6b5aa5c8bee37cc13ab35d186b8fa604f62b2c/Snow/homeManager/programs/waybar/default.nix#L93-96

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcorrectnessOutput parses differently after formatting

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions