summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-02-10 16:32:40 +0400
committerGitHub <noreply@github.com>2017-02-10 16:32:40 +0400
commite6e72296d7e22eaa6fe20fd0b2007d3b58a078a2 (patch)
tree9ec085e5d912d1398c4953a77a5e4c3702227f25 /lib
parent22453795952c91177cc5d9b8b00771a57f3b8994 (diff)
parent6a89dadf7b5af34d582b5f09b855c7dc96b481a4 (diff)
Merge pull request #712 from Ultra2D/issue-681
Procurve convert next line (NEL) to new line
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/procurve.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb
index c117df3..0b8b672 100644
--- a/lib/oxidized/model/procurve.rb
+++ b/lib/oxidized/model/procurve.rb
@@ -6,6 +6,11 @@ class Procurve < Oxidized::Model
comment '! '
+ # replace next line control sequence with a new line
+ expect /\eE/ do |data, re|
+ data.gsub re, "\n"
+ end
+
# replace all used vt100 control sequences
expect /\e\[\??\d+(;\d+)*[A-Za-z]/ do |data, re|
data.gsub re, ''