Просмотр исходного кода

Strip DOS Formatting from files - fixes whitespace at end of line bug

sbingner 23 лет назад
Родитель
Сommit
5839429d3a
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      docs/Changelog
  2. 1 0
      modules/Pisg/Parser/Logfile.pm

+ 1 - 0
docs/Changelog

@@ -12,6 +12,7 @@ pisg (x.xx)
      super long quotes showing up - BugID#594618)
    * Only match emails if it begins at the beginning of a line or after
      something other than ':' URL on that line. Fixes BugID#618540
+   * Strip DOS Formatting from files - Fixes space at end of line BugID#628580
 
 
 

+ 1 - 0
modules/Pisg/Parser/Logfile.pm

@@ -195,6 +195,7 @@ sub _parse_file
 
     while(my $line = <LOGFILE>) {
         $line = _strip_mirccodes($line);
+        $line =~ s/\r+$//;       # Strip DOS Formatting
 
         my $hashref;