mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
Replace \n to <br>
This commit is contained in:
+3
-1
@@ -90,7 +90,7 @@ module Ci
|
||||
|
||||
def convert(raw, new_state)
|
||||
reset_state
|
||||
restore_state(raw, new_state) if new_state
|
||||
restore_state(raw, new_state) if new_state.present?
|
||||
|
||||
start = @offset
|
||||
ansi = raw[@offset..-1]
|
||||
@@ -105,6 +105,8 @@ module Ci
|
||||
break
|
||||
elsif s.scan(/</)
|
||||
@out << '<'
|
||||
elsif s.scan(/\n/)
|
||||
@out << '<br>'
|
||||
else
|
||||
@out << s.scan(/./m)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user