1 person found this helpful
You can't use a GREP style to remove anything, but you could do this with a GREP search.
If it's just one space, use this:
(in the formula above, type a space after the ^)
replace with nothing
This will find any single space at the beginning of a paragraph and remove it.
Thank you for at fast reply. But I only want o remove the space if it is in the beginning of a cell.
This will remove every space - right?
The ^ will restrict it to removing spaces that are at the start of a paragraph (or cell). All other spaces will remain.
Thanks a lot - works super.
However, sometimes, I use a nested style: character style (with only a very negative kerning) on 1 space.
In the same way, a grep style: same character style applied on "^ " (^ with a space after).
I prefer SRiegel's solution, better and pure, but I just want to say that the problem can be treated differently.