Skip to content

[Bug]: Inconsistent indentation for raw string literals. #1857

Closed

Description

@PetSerAl

Description

Raw string literal not indented extra level when inside lambda function.

Steps to Reproduce

public class ClassName
{
    public void M()
    {
        var s = """
            Value
            """;
        T(() =>
        {
            var s = """
                Value
                """;
        });
    }
}

Expected Behavior

public class ClassName
{
    public void M()
    {
        var s = """
            Value
            """;
        T(() =>
        {
            var s = """
                Value
                """;
        });
    }
}

Actual Behavior

public class ClassName
{
    public void M()
    {
        var s = """
            Value
            """;
        T(() =>
        {
            var s = """
            Value
            """;
        });
    }
}

Activity

  1. added this to the 1.3.0 milestone on May 19, 2026
  2. added a commit that references this issue on May 19, 2026
    894afd9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions