Aligning Tag Insert


#1

Something missing in my actions I've created. Over the months I created various actions and now am trying to consoldate them into one or at least a few actions. I am almost complete and will configure all my tags to one standard.

Here's the problem I'm having and the actions i have for them.

Overall it's should look like this:

Album Credits:

Primary Artist: Charles Mingus

Featuring:

The first three lines i've created an action for listed below. The problem you'll see in a moment is it does not align correctly. The next section is actually from Discogs. It aligns perfectly.

Bass: Charles Mingus

Drums: Charles (Dannie) Richmond

Engineer: Ray Moore

Liner Notes [1959]: Diane Dorr-Dorynek

Painting [Cover]: S. Neil Fujita

Piano: Horace L. Parlan, Jr.

Remastered By, Producer: Teo MacEro

Saxophone: Booker T. Ervin, Jr., John Handy III, Shafi Hadi

Trombone: James M. Knepper, Willie Dennis

Written-By: Mingus

Now this is what i'm getting:

Album Credits:

Primary Artist: Charles Mingus

Featuring:

Bass: Charles Mingus

Drums: Charles (Dannie) Richmond

Engineer: Ray Moore

Liner Notes [1959]: Diane Dorr-Dorynek

Painting [Cover]: S. Neil Fujita

Mainly i'm getting a gap between The first 3 line (album credits, primary artist, featuring).

Something I've added is telling it to put a gap between each line break.

Here's the action (S = $)

Format value “PERFORMERS: Featuring:;$char(13)Schar(10)$char(13)$char(10)%performers%$char(13)$char(10)
Format value PERFORMERS: $char(13)Schar(10)Schar(13)Schar(10)%performers%Schar(1 3)Schar(10)
Format value “PERFORMERS: %artist names% %Performers%;
Format value PERFORMERS: Album Credits:;Schar(13)Schar(10)Schar(1 3)Schar(10)%performers%Schar(13)Schar(10)

Next Action: (again S = $)

Format value CREDITS: Sregexp(Sregexp(%credits%SI;([\r\n])),S1\r\n----------------------------------),;S,)

Format value PERFORMERS: Sregexp(Sregexp(%performers%,S([\r\n])),S1\r\n-------------------------------),;$,)

(Which I'm stating for every ; add a line break). [No Gap]

any suggestions.

If you know of a better way to accomplish let me know..

thanks


#2

The sequence inserts 2 complete "end of paragraph".
Chr(13) is "Carriage return" and
Chr(10) is "line feed".
These are the old printer commands to move the carriage back to the beginning of the line and move the paper up one line.
So if you see two empty lines then I would assume that one "$char(13)$char(10)" is one too many.


#3

And just like it's done!

Thanks