I'm guessing you don't really man end of paragraph, since all paragraphs have one, but rather a paragraph return at the end of a story (an empty paragraph). that would be \r\z
You can try replacing
with nothing, but I'd limit the GREP search to the paragraph style for footnotes.
Perfect, thanks Peter. Where did you get the \z end-of-story code? I
couldn't find it!
But I think I did mean end-of-paragraph before end of story. Most
paragraphs have an EOP at the end of them, but the last paragraph in a
story doesn't need it, and in the case of footnotes, it adds an
unnecessary blank line.
At any rate, your GREP did the trick.
Thanks David, that seems like another good way of doing it.
I found \z on Mike Witherell's great little chart at http://www.jetsetcom.net/useful-resources/indesign-cs6-resources.html
End of paragraph, at least in GREP is a location, not a character (the metacharacter is $) and can't be selected or replaced. Every paragraph has one. Paragraphs before the end of story also have a paragaph break, and that's what you are trying to remove at the end of your footnote story.
@David, Why bother withthe lookahead? \z is the location, so I would presume that the search would start at the end of story and look at the last character. That has to be faster than parsing every break in the paragraph to check for the end of story location after, and there's no possibility that you will actually delete the EOS since it can't actually be selected.
Right, I see the distinction you're making. I did indeed mean a
PS Thanks for the link.