bad alignament


#1

Hello. My problem is that i do this:

$filename(%_folderpath%%album%.txt)Información general:

Artista: %artist%.
Álbum: %album%.
Año: %year%.
Número de canciones: %_total_files%.
Duración: %_total_time%
Tamaño del archivo: %_total_size%.

Información del ripeo:

Tipo: MP3.
Bitrate: %_bitrate% kBit/.s
Tipo Bitrate: %_vbr%.
Frecuencia:$fmtNum( %_samplerate%) Hz.
Modo: %_mode%.

Pistas:

$loop(%_path%)$num(%track%, 2). %title%.$repeat(-,$sub(35,$len($num(%track%, 2). %title%. )))'['%_file_size_mb%MB']' -- '['%_length%']'
$loopend()

and i have this:
Información general:

Artista: Natalie Imbruglia.
Álbum: Greatest Hits.
Año: 2008.
Número de canciones: 20.
Duración: 01:18:14
Tamaño del archivo: 107,71 MB.

Información del ripeo:

Tipo: MP3.
Bitrate: 192 kBit/.s
Tipo Bitrate: CBR.
Frecuencia:44.100 Hz.
Modo: Joint Stereo.

Pistas:

  1. Glorious.---------------------[4,72MB] -- [03:26]
  2. Shiver.-----------------------[5,26MB] -- [03:49]
  3. Torn.-------------------------[5,72MB] -- [04:09]
  4. Satisfied.--------------------[4,93MB] -- [03:35]
  5. Wrong Impression.-------------[6,02MB] -- [04:22]
  6. Wishing I Was There.----------[5,45MB] -- [03:57]
  7. Against The Wall.-------------[5,22MB] -- [03:47]
  8. Starting Today.---------------[4,14MB] -- [03:00]
  9. Smoke.------------------------[6,46MB] -- [04:42]
  10. Be With You.------------------[5,17MB] -- [03:45]
  11. That Day.---------------------[6,62MB] -- [04:49]
  12. Big Mistake.------------------[6,36MB] -- [04:38]
  13. Counting Down The Days.-------[5,82MB] -- [04:14]
  14. Beauty On The Fire.-----------[6,10MB] -- [04:26]
  15. Sanctuary.--------------------[4,44MB] -- [03:13]
  16. One More Addiction.-----------[4,95MB] -- [03:36]
  17. Satellite.--------------------[4,44MB] -- [03:13]
  18. Intuition.--------------------[4,77MB] -- [03:28]
  19. Stuck On The Moon.------------[5,02MB] -- [03:39]
  20. Leave Me Alone.---------------[6,10MB] -- [04:26]

And I don't why.

Somebody help me, please?


#2

Sorry, it is not clear what the problem should be.

By the way ...
$len($num(%track%,2))
... is always 2 for track numbers from 0 to 99.
... and ...
$sub(35,2)
... is always 33.

DD.20100824.2238.CEST

Maybe ... you want something like this?

$loop(%_path%)$left($num(%TRACK%,2)'. '%TITLE%'.'$repeat('-',50),50)'['$right($repeat(' ',7)%_file_size_mb%'MB',7)'] -- ['%_length%']' $loopend()

DD.20100824.2305.CEST