Page 1 of 1

search replace for paragraphs that include a footnote

Posted: 2014-10-16 14:04:44
by erico
Hello,
I'm importing a huge document that has tons of block citations that I'd like to quickly format into their proper style. They will always look like

texttexttextCOLON LINEEND
text text text text FOOTNOTE LINEEND
texttexttext

I am trying to do a search and replace
:\n(?:.|\n|\f)+$

but nisus does not find any paragraphs that have a footnote reference in them. :-(

Is there a way around this?

Thanks !
Eric

Re: search replace for paragraphs that include a footnote

Posted: 2014-10-20 16:35:33
by phspaelti
Wow! It shows how little I use footnotes. I had never noticed this before. :o

Anyhow I am not sure if this is exactly what you want, but the following macro will select paragraphs that end with a footnote and have a colon at the end of the paragraph before (or did you want that paragraph selected as well?)