# Playlist Creation: Erroneous Additional Line Breaks In .m3u and .m3u8 Files

**URL:** https://community.mp3tag.de/t/playlist-creation-erroneous-additional-line-breaks-in-m3u-and-m3u8-files/46939
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [November 1, 2019, 12:07pm UTC](https://community.mp3tag.de/t/playlist-creation-erroneous-additional-line-breaks-in-m3u-and-m3u8-files/46939 "2019-11-01T12:07:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BinaryLocust](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/2acd7d/32.png) [@BinaryLocust](https://community.mp3tag.de/u/BinaryLocust)
#### Post date: [November 1, 2019, 12:07pm UTC](https://community.mp3tag.de/t/playlist-creation-erroneous-additional-line-breaks-in-m3u-and-m3u8-files/46939/1 "2019-11-01T12:07:19Z")

</div>

On files with certain metadata, creating a playlist (using `File` -\> `Playlist (all files)`) causes [LF line breaks](https://en.wikipedia.org/wiki/Newline) to be inserted into the .m3u8 playlist. This occurs when the `Write extended info` setting is enabled in the Playlist section of the Options menu.  
The `EXTINF` duration and metadata should be on a single line with the filename following on the next line. Trying to open one of these created playlist files in foobar2000 causes the player to see these additional lines as additional files that don't exist.

[Example files here.](https://mega.nz/#!Gt4AWIrI!elQygDKTzMBF1Z3mOGXsZ7AfgrDstRiVN41PuvLpHE8)

Using just `01 track 1.flac` as an example. Note that the erroneous line breaks use only line feed characters while the intended line breaks use both carriage return and line feed characters.

.m3u8 file created by Mp3tag:  
`#EXTM3U`[CR][LF]  
`#EXTINF:288,Azumi Waki - トラック 1 `[LF]  
`仙狐さんに `[LF]  
`起こしてもらって `[LF]  
`いっしょにごはん！`[CR][LF]  
`01 track 1.flac`[CR][LF]

.m3u8 file created by foobar2000:  
`#EXTM3U`[CR][LF]  
`#EXTINF:288,Azumi Waki - トラック 1 仙狐さんに 起こしてもらって いっしょにごはん！`[CR][LF]  
`01 track 1.flac`[CR][LF]

Please fix this bug and ensure that generated playlists do not include erroneous line breaks.

---

<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: [November 11, 2019, 9:13am UTC](https://community.mp3tag.de/t/playlist-creation-erroneous-additional-line-breaks-in-m3u-and-m3u8-files/46939/3 "2019-11-11T09:13:01Z")

</div>

Thanks for reporting and the test case! I'll make sure to remove those newline characters before they're written to the playlist with the next release.

---

<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: [November 15, 2019, 10:57am UTC](https://community.mp3tag.de/t/playlist-creation-erroneous-additional-line-breaks-in-m3u-and-m3u8-files/46939/4 "2019-11-15T10:57:32Z")

</div>

Fixed with [Mp3tag v2.99b](https://community.mp3tag.de/t/455).

---

<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: [December 15, 2019, 10:57am UTC](https://community.mp3tag.de/t/playlist-creation-erroneous-additional-line-breaks-in-m3u-and-m3u8-files/46939/5 "2019-12-15T10:57:33Z")

</div>

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