Skip to content

[BUG] Indentation is not preserved #25

Open
@Sorokin-Anton

Description

@Sorokin-Anton

Description

According to the tutorial, we should not strip any trailing whitespaces when the first line is not indented. But we do.

To Reproduce

Steps to reproduce the behavior:

Use int on a such string:

t :: Text
t = [int||
1
  2
|]

and then see what is t in GHCi:

ghci> t
"1\n2\n"

Note the space before 2 disappeared.
Looks like this happen only when one of lines has no indentation at all

Expected behavior

t = "1\n 2\n"

Metadata

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