# Unable to split multiline comment field

**URL:** https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765
**Category:** Mac
**Tags:** bug-fixed
**Created:** [January 22, 2023, 5:01pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765 "2023-01-22T17:01:26Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Arbiter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Arbiter](https://community.mp3tag.de/u/Arbiter)
#### Post date: [January 22, 2023, 5:01pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/1 "2023-01-22T17:01:26Z")

</div>

I'm sure I'm just missing it, but I have not figured out how to split the Comment field into two separate fields. The comments contain regular comments until "Lyrics:" and then "Lyrics:" is followed by the lyrics. I am trying to copy the lyrics to the UNSYNCEDLYRICS tag and remove them from the COMMENT field, while leaving the COMMENT content preceding the word "Lyrics:" intact.

I have tried Split Tag Field like so:

Field: COMMENT  
Separator: %comment% Lyrics: %unsyncedlyrics%

I tried replacing "Lyrics:" in the comment field with ";;;;" and then tried Split Tag field again...

Field: COMMENT  
Separator: %comment% ;;;; %unsyncedlyrics%

I've tried removing spaces in the separator as well. What am I missing?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 22, 2023, 5:05pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/2 "2023-01-22T17:05:57Z")

</div>

I think you are using the wrong action.  
Split tag field splits existing data in 1 field into several fields of the same type.

I think the correct action would be  
Import tag fields

> [@Quick Actions and Action Groups](https://community.mp3tag.de/t/quick-actions-and-action-groups/51882#import-tag-fields-7):
>
> Mp3tag for Mac provides a variety of Actions, which can be used on filenames and tags. The actions can be applied individually via Actions → Quick Actions ⌥⌘ 6 or be grouped into named and reusable Action Groups via Actions → Actions ⌘ 6. Action Groups serve as repeatable workflows in Mp3tag for Mac. When using Quick Actions you can select one of the different available action types from the list. This action will be applied to the selected files and the changes are saved immediately. Tip 1…

---

<div class="post-metadata">

### Author: ![Arbiter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Arbiter](https://community.mp3tag.de/u/Arbiter)
#### Post date: [January 22, 2023, 5:47pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/3 "2023-01-22T17:47:11Z")

</div>

Thanks for the suggestion. I should have mentioned I also tried Import Tag Fields. I suspect maybe I'm using it incorrectly. I did read the guide with Florian's example for Mac and the Windows version (same example), but I must be missing something. I have tried this:

Source format: %comment% Lyrics: %dummy%  
Formatstring: %comment% Lyrics: %unsyncedlyrics%

I have also tried:

Source format: %comment%  
Formatstring: %comment% Lyrics: %unsyncedlyrics%

Neither one produces any changes. Any insights to the correct syntax?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 22, 2023, 5:54pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/4 "2023-01-22T17:54:03Z")

</div>

> [@Arbiter](#):
>
> I have also tried:
> 
> Source format: %comment%  
> Formatstring: %comment% Lyrics: %unsyncedlyrics%

Looks a lot more plausible.  
The basic idea is that the action "Import Tag fields" works almost like the Converter Filename-Tag - only that you can set which string should be the source. The converter assumes the filename as source.  
So, without an accurate representation of the contents of COMMENT, I can hardly say anything about the correct pattern for the target.  
At the moment it looks like you have some text in COMMENT which features the word "Lyrics:" and that this word should serve as indicator where to divide the data.  
That separator has to be painstakingly correct: spelling, case, leading and trailing spaces, punctuation.  
So if you do no succeed now, a screendump of the field comment in edit mode, taken from the extended tags view would be nice.

---

<div class="post-metadata">

### Author: ![Arbiter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Arbiter](https://community.mp3tag.de/u/Arbiter)
#### Post date: [January 22, 2023, 5:58pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/5 "2023-01-22T17:58:18Z")

</div>

I guess that would have helped to add an example comment, so here it is:

```auto
https://chronopolis.ocremix.org
Chronopolis: Music Inspired by Chrono Cross

Lyrics:

I'm drifting so far away
I really think I'm astray
All so foreign, yet familiar to me
Where did I go? Where could you be?

In this world, I am alone
And I miss you, now that you are gone
But if fate could be rearranged
You'd be here, my world forever changed

If I could...

I'm wandering
So aimlessly
I'm wishing for another world

You found me, and I found you
Together, we will pull through
Though I wonder, if you never found me
Where would you go? And where would I be?

Lost in time and lost in space
Someone else then stole what was your place
But I think, if my fate could change
You would be forever here with me

If I could...

```

I'd like to keep everything before `Lyrics:` in the comment field and put everything after `Lyrics:` in the unsyncedlyrics tag.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 22, 2023, 6:04pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/6 "2023-01-22T18:04:31Z")

</div>

I just tried:  
 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/e/efff8f5861e67d25aa38aee46ca83fb6fba602b8.png)

Source: %comment%  
Format string:`%comment%Lyrics:%unsyncedlyrics%`  
and that worked for your example.

---

<div class="post-metadata">

### Author: ![Arbiter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Arbiter](https://community.mp3tag.de/u/Arbiter)
#### Post date: [January 22, 2023, 6:17pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/7 "2023-01-22T18:17:02Z")

</div>

> [@ohrenkino](#):
>
> %comment%Lyrics:%unsyncedlyrics%

Thanks for testing. I tried it again. Nothing changed. I copied the formatting text directly from your comment and tried again. Nothing changed. I restarted MP3Tag and tried again. Nothing changed.

I'm at a loss why this isn't working. I'm not sure if I feel better or worse knowing that I was entering the correct formatting.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 22, 2023, 6:23pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/8 "2023-01-22T18:23:16Z")

</div>

From now on I cannot help you any more -  
This is the result I got with the above example text in COMMENT:

 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/4/49f6c51520dde3a58e4819d10444a63916b88e7c.png)

 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/7/7fac1475927a15e118b51dbe33c1719223a9ae5f.png)

So the only explanation would be that the separator still does not match or that the way that you enter the fields on a Mac is different from the way it is done in the Windows version (e.g. from a field list and no % around the names).

---

<div class="post-metadata">

### Author: ![Arbiter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Arbiter](https://community.mp3tag.de/u/Arbiter)
#### Post date: [January 22, 2023, 6:38pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/9 "2023-01-22T18:38:38Z")

</div>

I appreciate your help either way. I just finished testing in the Windows version through a VM and it is working perfectly. I'm wondering if there is an issue with Windows versus Unix line endings or something. I've been trying to avoid using the Windows version, but apparently that is necessary in this instance for some reason.

The %tag% formatting has been the same on the Mac version in all of the other placeholder fields, so I don't believe that is the issue. Maybe when Florian's back on the clock he'll have some insight, but thanks again either way!

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 22, 2023, 7:53pm UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/10 "2023-01-22T19:53:53Z")

</div>

It seems to be an issue with the newline characters that are handled differently on Mac and I'll have to adjust the parser to also match those.

Thanks for pointing and I'll keep you posted!

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 27, 2023, 7:30am UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/11 "2023-01-27T07:30:59Z")

</div>

I've fixed the issue and added support for matching multiline input with [Mp3tag for Mac v1.7.3](https://community.mp3tag.de/t/mp3tag-for-mac-v1-7-released/59421/5).

Thanks again for taking the time to report this issue!

---

<div class="post-metadata">

### Author: ![Arbiter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Arbiter](https://community.mp3tag.de/u/Arbiter)
#### Post date: [January 27, 2023, 9:04am UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/12 "2023-01-27T09:04:28Z")

</div>

Thanks for fixing it so quickly and confirming I'm not looney. 😉

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 26, 2023, 9:04am UTC](https://community.mp3tag.de/t/unable-to-split-multiline-comment-field/59765/13 "2023-02-26T09:04:51Z")

</div>

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