lordmulder / LameXP

Audio Encoder Front-End
http://lordmulder.github.io/LameXP
Other
184 stars 18 forks source link

Double spaces in file names are shortened to one space #21

Closed user239393 closed 9 years ago

user239393 commented 9 years ago

Hi, great tool. :)

There is a minor bug...it could also be a feature. If a file name has two spaces between two other chars, e. g.: Artist - Song.m4a -> converted to .mp3 -> Artist - Song.mp3 -> file name has changed, one space missing.

Thanks, Stefan

lordmulder commented 9 years ago

Yes, it's a feature ;-)

File name strings are generally simplified() in order to remove redundant spaces and to get a more "normalized" representation. I don't see why you would want to have two (or more) whitespace characters in a sequence. It's just typographically wrong. And it's almost certainly a typo, a mistake. Just like you don't put a whitespace in front of a comma or full stop, but you have to put one after the comma or full stop. Last but not least, if in HTML, you put multiple whitespace characters in a sequence, it will also be reduced to a single space – unless you explicitly enforce multiple spaces using the   escape sequence. It even happens, if you post an issue at Github, as you may have noticed in your own post.

See also: http://de.wikipedia.org/wiki/Plenk

user239393 commented 9 years ago

Haha, right, Github changed my post. Thank you for your answer.