Skip to content

Commit

Permalink
Make sure we consider \r as part of a newline if it's there.
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Mar 28, 2011
1 parent 4bc9dc2 commit db59e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/remote_syslog_logger/udp_sender.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize(remote_hostname, remote_port, options = {})
end

def transmit(message)
message.split("\n").each do |line|
message.split(/\r?\n/).each do |line|
next if line =~ /^\s*$/
packet = @packet.dup
packet.content = line
Expand Down

0 comments on commit db59e39

Please sign in to comment.