8 Replies Latest reply on Nov 1, 2016 5:47 AM by Trevorׅ

    delete multiple line-break

    cmoke73 Level 1

      Hi.

       

      I know, it is a basic thing. Theoretical I now the answer, but it doesn´t work.

       

       

      I want to delete double line-breakes. Ishould work with the siple script:

       

      app.findGrepPreferences.findWhat = "\\r\\r";  //or \\r{2,}
      app.changeGrepPreferences.changeTo = "\\r";      
      app.selection.paragraphs.everyItem().changeGrep();  
      

       

      If I search for them one by one, the´ll be found. Not as a double-pack!

      ???