enter image description hereso i have this format of the text in below and i need to replace the first CR LF tabulation with space :
Contenu
2 encarts
12 encarts
Prepresse
Fichier fourni
and i want the result:
Contenu 2 encarts
12 encarts
Prepresse Fichier fourni
can you give more info regarding the source of this text you want to format? it seems like Contenu and Prepresse Fichier are both names for a group
where you have items like 2 encarts , 12 encarts and fourni as items in those groups
The first thing is to detect if the text is a group name or an item, I hope this can be detected from the source where your text comes from. The second thing is echoing the items correctly.
EDIT:
I do a lot using arrays, created your output using this code:
shows me this as output:
hope this helps