: GREP Style to remove tabs & replace with paragraph break I am wondering if it is possible to create a GREP Style (not search) to auto-format a consistent data set of info. Data example as
I am wondering if it is possible to create a GREP Style (not search) to auto-format a consistent data set of info. Data example as follows:
XXX1X234-101 "UPAS" WOVEN SPTWR JKT OFF WHITE
XXX1X234-6D6 "JAKLYN" WOVEN SPTWR TOP BARE PINK
XXX1X234-6D6 "RUTHIE" WOVEN SPTWR TOP BARE PINK
XXX1X234-101 "COLE" WOVEN SPTWR JKT OFF WHITE
XXX1X234-9O2 "JAKLYN" WOVEN SPTWR TOP ALABASTER
XXX1X234-001 "JAKLYN" WOVEN SPTWR TOP BLACK
XXX1X234-101 "KURRA" WOVEN CITY PANT OFF WHITE
If needed, data consists of 12 char string then tab, followed by a string surrounded by quotations then tab, then another string of text then tab, and lastly one more string of text.
I am wondering if it can be formatted to this automatically:
XXX1X234-101
"UPAS"
WOVEN SPTWR JKT
OFF WHITE
XXX1X234-6D6
"JAKLYN"
WOVEN SPTWR TOP
BARE PINK
XXX1X234-6D6
"RUTHIE"
WOVEN SPTWR TOP
BARE PINK
Till the end of the data list.
Each string instead of being tabbed in now in new line (not new paragraph; shift-tab)
Thank you in advance!
More posts by @Phylliss782
1 Comments
Sorted by latest first Latest Oldest Best
As it has been pointed by commentaries, Grep styles won't help you here.
I would personally also use Find/Replace to set things properly.
However, as a fast (and dirty) workaround, you could easily edit your paragraph style to set a tabulation value equal to your column value. This way, text after tab will be "pushed" to the next line.
Use nested styles (or grep styles) to format line 2 and the 3 characters after your dash.
It's a fast workaround, but it's not what I would call good practice since you can come up with situations (such as text wrapping graphic frame) that would mess up the whole thing.
Example for a 130 mm column width:
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.