# padding with spaces - align track length right

**URL:** https://community.mp3tag.de/t/padding-with-spaces-align-track-length-right/5089
**Category:** Export
**Created:** [June 30, 2007, 8:06am UTC](https://community.mp3tag.de/t/padding-with-spaces-align-track-length-right/5089 "2007-06-30T08:06:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![moe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moe](https://community.mp3tag.de/u/moe)
#### Post date: [June 30, 2007, 8:06am UTC](https://community.mp3tag.de/t/padding-with-spaces-align-track-length-right/5089/1 "2007-06-30T08:06:57Z")

</div>

after looking at main\_scripting.html help file, I'm still confused as how I align %\_length% to the right of each %title%. I tried to define a variable using $put(x, y) and $puts(x, y) outside a loop and can't seem to reference it inside a loop, etc etc.

Anyway, I am exporting to simple text file and want the format for track listing to be as follows:

01 - Some song title 03:25  
02 - Some long song title 10:15

Can someone pls show me some code that I can format the track listing like the above.

This is what I have done:

$loop(%\_path%)$num(%track%,2) - %title% %\_length%  
$loopend()

but the %\_length% is not aligned right ☹

tks

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [June 30, 2007, 10:30am UTC](https://community.mp3tag.de/t/padding-with-spaces-align-track-length-right/5089/2 "2007-06-30T10:30:16Z")

</div>

Maybe this guides you into the right direction.  
[Export 2 txt - Leerzeichen individuell einfügen...](https://community.mp3tag.de/t/4469/2)

DD.20070630.1430

---

<div class="post-metadata">

### Author: ![moe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ad7895/32.png) [@moe](https://community.mp3tag.de/u/moe)
#### Post date: [July 17, 2007, 8:05am UTC](https://community.mp3tag.de/t/padding-with-spaces-align-track-length-right/5089/3 "2007-07-17T08:05:43Z")

</div>

Thanks!

Managed to figure it out after translating that thread with babel fish translation 🙂
