Add New Line Before A Bracket

I've been trying to add a new line behind a bracket on the lyrics tag but I ended up giving up and coming here, let's say I have a lyrics tag like this:

[Refrain]
La-da-da, la-da-da

[Bridge]
All that time spent with my therapist
Talking over all your arrogance
[Chorus]
If you're gonna send it, they might save it

could someone help me out with an Action to add a new line behind [Chorus] but not on the other brackets? I have this problem in multiple songs and has been bugging me out for while :face_with_diagonal_mouth:

You could try to replace the invisible "carriage return" (and maybe linefeed) at the end of the word arrogance followed by an opening bracket [ with a carriage return **and two linefeeds ** (\r\n\n) followed by an opening bracket [

The problem is: We can't see what character(s) exactly follows at the end of "arrogance" before [

I would do it in 2 steps:
first relace all brackets with an additional new line,
then replace all triple new lines with 2 new lines.

That's exactly what I tried before but the second step didn't change anything.
Could you tell me exactly how to do it? maybe yours could actually work

Could you show us what you tried?
Which function/action?
Which format string?

I tried it with Converter>Tag-Tag for UNSYNCEDLYRICS
Format string: $regexp($regexp(%unsyncedlyrics%,'\r\n\[','\r\n\r\n\['),\r\n\r\n\r\n,\r\n\r\n)

1 Like

I don't know much about this stuff, but what i did was:

  1. replace with regular expresion
    Field: UNSYNCEDLYRICS
    Regulas expresion: \n[
    Replace matches with: \n\n[

  2. replace with regular expresion
    Field: UNSYNCEDLYRICS
    Regulas expresion: \n\n\n[
    Replace matches with: \n\n[

the 2nd step did not work, I'm unaware of what I'm doing wrong

I think that it is not just \n but a complete new line is actually \r\n.
Have you tried my idea?

1 Like

Haha sorry I had not read that part of your message, but, Yes! Your idea actually worked, thank you so much!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.