Replace \n to <br>

This commit is contained in:
Kamil Trzcinski
2016-05-23 21:59:07 -05:00
parent 46de0366b1
commit cdec9e472d
3 changed files with 16 additions and 3 deletions
+9
View File
@@ -175,5 +175,14 @@ describe Ci::Ansi2html, lib: true do
it_behaves_like 'stateable converter'
end
context 'with new line' do
let(:pre_text) { "Hello\r" }
let(:pre_html) { "Hello\r" }
let(:text) { "\nWorld" }
let(:html) { "<br>World" }
it_behaves_like 'stateable converter'
end
end
end