Skip to content

Extra indent when call method on RawStringLiteral #1169

@Rudomitori

Description

@Rudomitori

Input:

var fillingProgress = calculator.Calculate(
    """
    {
      "TextField":  "",
      "NumberField": "",
      "DateRangeField":  "",
      "TimeField": "",
      "RadioGroupField":  "",
      "DropdownField": "",
      "CheckBoxField":  "",
      "CheckBoxGroupField": "",
      "TagInputField":  "",
      "FileField": "",
      "Weight":  "",
      "Height": ""
    }
    """.ToJsonObject()!,
    []
);

Output:

var fillingProgress = calculator.Calculate(
    """
        {
          "TextField":  "",
          "NumberField": "",
          "DateRangeField":  "",
          "TimeField": "",
          "RadioGroupField":  "",
          "DropdownField": "",
          "CheckBoxField":  "",
          "CheckBoxGroupField": "",
          "TagInputField":  "",
          "FileField": "",
          "Weight":  "",
          "Height": ""
        }
        """.ToJsonObject()!,
    []
);

Expected behavior:

var fillingProgress = calculator.Calculate(
    """
    {
      "TextField":  "",
      "NumberField": "",
      "DateRangeField":  "",
      "TimeField": "",
      "RadioGroupField":  "",
      "DropdownField": "",
      "CheckBoxField":  "",
      "CheckBoxGroupField": "",
      "TagInputField":  "",
      "FileField": "",
      "Weight":  "",
      "Height": ""
    }
    """.ToJsonObject()!,
    []
);

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