# Convert \> Text file - Tag: Field Contents With Newlines

**URL:** <https://community.mp3tag.de/t/convert-text-file-tag-field-contents-with-newlines/53161>\
**Category:** Support\
**Created:** [May 10, 2021, 12:27am UTC](https://community.mp3tag.de/t/convert-text-file-tag-field-contents-with-newlines/53161 "2021-05-10T00:27:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![User04](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/u/91b2a8/32.png) [@User04](https://community.mp3tag.de/u/User04)\
**Post date:** [May 10, 2021, 12:27am UTC](https://community.mp3tag.de/t/convert-text-file-tag-field-contents-with-newlines/53161/1 "2021-05-10T00:27:47Z")

</div>

When tagging media files from a text file, how do I format newline characters within the text file for fields that are to contain multiple lines (such as long descriptions or lyrics)?

For example, for a file named _Frère Jacques.mp3_ that I would like to tag the unsyncedlyrics field with:

Frère Jacques, Frère Jacques  
Dormez-vous, dormez-vous?  
Sonnez le matines, sonnez le matines  
Ding ding dong, ding ding dong

The intention would be to use a format string of _%\_filename\_ext% \ %unsyncedlyrics%_ and the line in the text file to start:  
`Frère Jacques.mp3 \ fre||Frère Jacques, Frère Jacques`  
How would I continue this line within the text file to add a newline character followed by the second line of the lyrics?

---

<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:** [May 10, 2021, 4:33am UTC](https://community.mp3tag.de/t/convert-text-file-tag-field-contents-with-newlines/53161/2 "2021-05-10T04:33:47Z")

</div>

The rule is simple: 1 line per record/file.  
You would have to replace the CR/LF characters prior to import with preferably a unique printable character that does not equal the field separator and then restore the line breaks afterwards in MP3tag with an action.  
E.g. you could replace the CR/LF with "==" like  
`Frère Jacques, Frère Jacques==Dormez-vous, dormez-vous?`  
and then create an action of the type "Replace with regular expression":  
Search string: ==  
Replace string: \r\n

---

<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:** [June 9, 2021, 4:34am UTC](https://community.mp3tag.de/t/convert-text-file-tag-field-contents-with-newlines/53161/3 "2021-06-09T04:34:20Z")

</div>

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