0

Following on from this question about stripping newlines out of text, I want to turn this into a zsh alias as follows:
alias striplines=' awk " /^$/ {print \"\n\"; } /./ {printf( \" %s \",$0);}"'
I've tried escaping the quotes inside the awk script, but I'm getting this error:
awk: (FILENAME=...