mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-20 18:16:45 +10:00
Replace \n to <br>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user