fix array decode for all weird line breaks
This commit is contained in:
parent
ff166b5ab5
commit
8982dadad1
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#################################
|
||||
#
|
||||
# $Dwarf: yenc.rb,v 1.6 2003/04/21 19:45:38 ward Exp $
|
||||
# $Dwarf: yenc.rb,v 1.7 2003/04/22 19:11:15 ward Exp $
|
||||
# $Source$
|
||||
#
|
||||
# article.rb
|
||||
|
|
@ -222,7 +222,8 @@ def _ydecode_array(data)
|
|||
|
||||
while (i < data.length)
|
||||
line = data[i]
|
||||
line.chomp!("\r\n")
|
||||
line.chomp!("\n")
|
||||
line.chomp!("\r")
|
||||
print "at #{i} need to go to #{data.length}\n" if Debuglevel > 1
|
||||
print "line: #{line}" if Debuglevel > 0
|
||||
i += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue