views:

92

answers:

1

How can I tell m4's patsubstr to replace all newlines in a string with a space?

I've tried:

patsubst(MULTI_LINE_STR_DEFINE,`\n',` ')

and

patsubst(MULTI_LINE_STR_DEFINE,`\\n',` ')
+1  A: 
patsubst(MULTI_LINE_STR_DEFINE,`
',` ')

That is, you put the newline, literally, between quotes.

sanxiyn
d'oh! Thanks sanxiyn. I feel like an idiot...
Ross Rogers