0 Replies Latest reply on Dec 16, 2008 5:45 AM by frameexpert

    CS3 GREP Bug Fixed in CS4

    frameexpert Level 4
      Hello all,

      I am using findGrep to find and delete hard-coded bullets on paragraphs. I am using this to find the bullets (with optional spaces before and after them).

      // Remove the bullets.
      app.findGrepPreferences.findWhat = " *~8 *(?=\\w)";
      app.changeGrepPreferences.changeTo = "";
      var foundItems = oPgf.findGrep();
      if (foundItems.length);

      When I use this via JavaScript, the return at the end of the paragraph is deleted and restored, so that the paragraph format of the following paragraph becomes the same as the paragraph being processed. If I do this via the interface, only the bullet (and spaces) is deleted.

      My workaround to prevent this behavior is to set the changeTo text to an Indent to Here character:

      app.changeGrepPreferences.changeTo = "~i";

      When there is changeTo text, the paragraph is no longer merged with the next one.

      I tested it with CS4 and it corrects this behavior.

      Rick Quatro
      rick at frameexpert dot com