# Export formatting question

**URL:** https://community.mp3tag.de/t/export-formatting-question/12799
**Category:** Support
**Created:** [December 11, 2011, 2:52am UTC](https://community.mp3tag.de/t/export-formatting-question/12799 "2011-12-11T02:52:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nitz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/bc8723/32.png) [@nitz](https://community.mp3tag.de/u/nitz)
#### Post date: [December 11, 2011, 2:52am UTC](https://community.mp3tag.de/t/export-formatting-question/12799/1 "2011-12-11T02:52:15Z")

</div>

I wrote the following tiny script to export tags of selected files into a CUE sheet.

PERFORMER "%artist%"  
TITLE "%album%"  
$loop(%\_path%)  
FILE "%\_filename\_ext%" WAVE  
TRACK $num(%\_counter%, 2) AUDIO

```
TITLE "%title%"
INDEX 01 00:00:00

```

$loopend()

It works fine, except it produces an extra line feed between sections, as follows:

PERFORMER "No Doubt"  
TITLE "The Singles, 1992-2003"

FILE "01 ^ Just a Girl.flac" WAVE  
TRACK 01 AUDIO

```
TITLE "Just a Girl"
INDEX 01 00:00:00

```

FILE "02 ^ It's My Life.flac" WAVE  
TRACK 02 AUDIO

```
TITLE "It's My Life"
INDEX 01 00:00:00

```

How can I prevent the extraneous line feeds, so there's only single spacing throught the CUE sheet? Thanks!

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [December 11, 2011, 8:08am UTC](https://community.mp3tag.de/t/export-formatting-question/12799/2 "2011-12-11T08:08:31Z")

</div>

Put this in one line:

$loop(%\_path%)FILE "%\_filename\_ext%" WAVE

---

<div class="post-metadata">

### Author: ![nitz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/bc8723/32.png) [@nitz](https://community.mp3tag.de/u/nitz)
#### Post date: [December 11, 2011, 6:37pm UTC](https://community.mp3tag.de/t/export-formatting-question/12799/3 "2011-12-11T18:37:29Z")

</div>

Thanks. It now works exactly as I had hoped.

---

<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 9, 2026, 12:23pm UTC](https://community.mp3tag.de/t/export-formatting-question/12799/4 "2026-02-09T12:23:30Z")

</div>


