Menu

#426 Wrong indentation after comment line(s)

Closed
closed-fixed
formatter (28)
5
2026-01-18
2025-05-21
No

The following code gets indented wrongly:

function TGrd2RdQPv3.TQprLaserData.IsValid: Boolean;
begin
  Result := HasBeenSet
    and InterpretStatus(Status)
    and InterpretValue(Value)
    // Some Comment
    // here
    // with
    // multiple
    // lines
  and (Value > 0);
end;

The last line with "and (Value > 0);" should be indented one more step.

Discussion

  • Thomas Mueller

    Thomas Mueller - 2026-01-18
    • status: open --> closed-fixed
    • Group: New --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 2026-01-18

    fixed in revision #4974

     

Log in to post a comment.

MongoDB Logo MongoDB