16 Replies Latest reply on May 29, 2014 7:07 AM by hasvi

    correct my script 'clear empty enter mark'

    hasvi Level 1



      My script is working for remove extra enter mark in Indesign file, but when its removed that time the enter mark followed para style is changed.

      I want to remove the enter mark at the same time I have retained followed para style. Is this possible by script?


      This is my code for remove empty enter marks:




      app.findGrepPreferences.findWhat = "~b~b+";

      app.changeGrepPreferences.changeTo ="\r";

      app.activeDocument.changeGrep ();



      See my snapshot below:

      Remove empty enter mark .png


      If I removed the empty enter mark by above script, empty enter mark(Normal) followed  'ABS_H' style was removed and empty enter mark style 'Normal' was applied to 'ABS_H'. Here I want retain the ABS_H style. Is this possible by script? Pls help me.