-
1. Re: Trying to use GREP to add 2 spaces to the beginning of a line, under a particular circumstance.
Salah Fadlabi Feb 3, 2014 10:45 AM (in response to iBabs2)Try:
Find what: (?<=[[:punct:]])\n
Change to: \n\s\s
-
2. Re: Trying to use GREP to add 2 spaces to the beginning of a line, under a particular circumstance.
iBabs2 Feb 3, 2014 10:55 AM (in response to Salah Fadlabi)Hello Salah,
Thank you...this is actually replacing the punctation with 2 spaces at the end of the line...
I am sure there is a way to have it not replace anything rather add them, anad tell InDesign, where to add them, like at the beginning fo the line.
But thank you for trying!!!! I appraciate it.
I will keep reseraching
Thank you
babs
-
3. Re: Trying to use GREP to add 2 spaces to the beginning of a line, under a particular circumstance.
Salah Fadlabi Feb 3, 2014 11:24 AM (in response to iBabs2)Try this grep it find all text from begging of paragraph until punctuation, then change with a paragaph style with first line indent.
Find:
(^.+(?<=[[:punct:]])\n)
Change to: select paragraph style.
-
4. Re: Trying to use GREP to add 2 spaces to the beginning of a line, under a particular circumstance.
pkahrel Feb 3, 2014 11:36 AM (in response to Salah Fadlabi)If applying a paragraph style works (nice thought!), then finding [[:punct:]]\n and applying the style works fine, no need for the grouping and the lookbehind. But if it's really the case that two spaces need to be inserted, then that's possible only if the text is not formatted at all. Then
find ^.+[[:punct:]]\n
change to \x20\x20$0
will do the trick (\x20 is the space character). If the text does have any formatting, a script is needed.
Peter


