2 Replies Latest reply on Feb 13, 2009 11:27 AM by (Dave_Saunders)

    FindChangeByList Sample Error

    Level 1
      There are some errors in the third and sixth sample greps included in the FindChangeByList.txt file that came bundled with CS4 (and also CS3, so perhaps these aren't very important errors). In both cases, the descriptions are wrong, each having been copied from the previous entry but not edited properly. But more importantly:

      Apply either of these and the paragraph after the return will take on the paragraph style of the paragraph before the return.

      To fix the problems change them to:

      grep {findWhat:" $"} {changeTo:""} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all instances of a space at the end of a paragraph and delete it.

      grep {findWhat:"\t$"} {changeTo:""} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all instances of a tab character at the end of a paragraph and delete it.

      However, what prompts me to actually post this is that I am mystified why the two similar entries that immediately precede these two don't have the same problem. In the UI, if you select a return and the space or tab that immediately follows it and hit return, you do get the problem of the styles changing. But it doesn't happen with these greps.

      Puzzled in New Jersey.

      Dave