1 Reply Latest reply on Jul 4, 2017 3:52 AM by user_1377889

    Find or replace newline or line break bug

    MikeMitchell

      Creator 4.1 help says: 

         

      "Line break \n Matches a platform-independent line break. In a Replace expression, inserts a line break."

         

      However, I can't get it to work in any case, with or without regular expressions, as a find or replace. As a replace, it actually puts "\n" in the file. 

         

      A typical case is to convert a bunch of function declarations to definitions, replace all the ";\n" with "\n{\n}\n"

         

      so that:

         
      void f1(void);  void f2(void);
         

      becomes:

         
      void f1(void)  {  }  void f2(void)  {  }