[Slim-Checkins] r15177 - /trunk/server/Slim/Utils/Strings.pm

kdf at svn.slimdevices.com kdf at svn.slimdevices.com
Tue Dec 11 09:28:08 PST 2007


Author: kdf
Date: Tue Dec 11 09:28:08 2007
New Revision: 15177

URL: http://svn.slimdevices.com?rev=15177&view=rev
Log:
Bug: 5848
Description: relax on line endings for strings.txt files.

Modified:
    trunk/server/Slim/Utils/Strings.pm

Modified: trunk/server/Slim/Utils/Strings.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Utils/Strings.pm?rev=15177&r1=15176&r2=15177&view=diff
==============================================================================
--- trunk/server/Slim/Utils/Strings.pm (original)
+++ trunk/server/Slim/Utils/Strings.pm Tue Dec 11 09:28:08 2007
@@ -270,7 +270,7 @@
 	LINE: for my $line (split('\n', $$text)) {
 
 		$ln++;
-		chomp($line);
+		$line =~ s/[\r\n]//g;
 
 		next if $line =~ /^#/;
 		next if $line !~ /\S/;



More information about the checkins mailing list