Menu

#227 Formatter outdents line in comment

Closed
closed-fixed
Formatter (9)
5
2022-10-02
2020-10-13
Ralf Junker
No

Follow up on https://sourceforge.net/p/gexperts/bugs/208/#363b/5f59:

Is it possible that the fix in revision #3345 introduced a glitch in another context?

For this code, the formatter now outdents the 2nd line by removing two whitespace:

case value of
 1,
  { 1st line.
    2nd line - will be outdented. }
  2:
    begin
    end;
end;

Discussion

  • Thomas Mueller

    Thomas Mueller - 2022-09-30

    Happens with the configurations borland and default, but not with delforex, headwork, special and twm, probably again caused by the setting IndentComments

     
  • Thomas Mueller

    Thomas Mueller - 2022-09-30
    • status: open --> closed-fixed
    • assigned_to: Thomas Mueller
    • Group: New --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 2022-09-30

    Fixed in revision #3913

     
  • Ralf Junker

    Ralf Junker - 2022-10-02

    Fix confirmed, many thanks!

     

Log in to post a comment.