Menu

#519 In C++, stop to format code after row-string !

closed-fixed
2023-04-01
2019-02-27
No

Since 2 days, I have begun to use C++ RowString

//sql.SELECT
sSQL.Clear() << R"(

SELECT TRIM(app_name)
      ,TRIM(batch_name)
      ,ifg_id
      ,doc_id
      ,TRIM(doc_type)
      ,TRIM(doc_name) 
FROM doc_types 
ORDER BY app_name desc
        ,batch_name desc
)";

When I run 'Format Document' using Whitesmith format, the C++ code before this code is correctly formatted.

BUT ... the code after this RowString has stopped to be correctly formatted.

The { character on new functions are now in first position and not more shifted by 4 spaces !

Discussion

  • Bernard Schleich

    To give more information, I have tested again in suppressing some 4 spaces before some statements after )"; character string that terminates RowString and ...

    Nothing after )"; has been formatted.

     
  • Jim Pattee

    Jim Pattee - 2019-03-07
    • status: open --> open-fixed
    • assigned_to: Jim Pattee
     
  • Jim Pattee

    Jim Pattee - 2019-03-07

    Fixed.

     
  • Rtek1000

    Rtek1000 - 2020-11-11

    Hello,

    Could you inform when a new version of this software will be released?

    The Arduino IDE is waiting for the new version, thanks!

    https://github.com/arduino/Arduino/issues/10946

     
  • André Simon

    André Simon - 2023-04-01
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Monday.com Logo