I'm trying to make WPS display some data on each line:
Artist
Composer
Album, Disk#-Track#
et cetera
The first approach was
%s%al%?ia<%ia|%?d(2)<%d(2)>>
%s%al%?ic<%ic>
%s%al%?id<%id%?in<%, %?ik<%ik-%in|%in>>>
...
This works pretty well, however, if there is no Composer in tags, I see the ugly empty line between Artist and Composer. What can I do to collapse this empty line? Just:
Artist
Album, Disk#-Track#
et cetera
I moved the newline under condition,
%s%al%?ia<%ia|%?d(2)<%d(2)>>%?ic<
%s%al%ic>
%s%al%?id<%id%?in<%, %?ik<%ik-%in|%in>>>
...
and then
%s%al%?ia<%ia|%?d(2)<%d(2)>>%?ic<
%ic>
%s%al%?id<%id%?in<%, %?ik<%ik-%in|%in>>>
...
-- the first one just replaces Artist line with Composer if there is a Composer tag, and the second one joins Artist and Composer on the same line. Newline isn't respected at all.
If I add some text after “%?ic<”, the checkwps tool complains about 'Expected list close', so I move the wrong way I guess. I googled the web and especially this forum, with no luck. Of couse I can bloat the code, making conditions for every line here and then, but this doesn't smell good.
Any suggestions?