diff options
author | Stan Hu <stanhu@gmail.com> | 2019-06-21 13:11:56 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-06-21 13:11:56 +0000 |
commit | 868da1d6c8d25d414b026c040d11aefe2f2a4e70 (patch) | |
tree | da39a3d89ec69667c8bfb386326f884f3a624d14 /lib | |
parent | 8981966a1dff8b7eec5a04b03276ed24c08a72ec (diff) | |
parent | e76f12f7e70c5a1d8a30720251ef81a3cacf94d0 (diff) | |
download | gitlab-ce-868da1d6c8d25d414b026c040d11aefe2f2a4e70.tar.gz |
Merge branch '63406-selecting-a-line-in-ci-job-trace-using-triple-click-selects-the-previous-line-also' into 'master'
Fix copying a single line from Firefox
Closes #63406
See merge request gitlab-org/gitlab-ce!29832
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/ansi2html.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/ci/ansi2html.rb b/lib/gitlab/ci/ansi2html.rb index fc3223e7442..55411b5a8c4 100644 --- a/lib/gitlab/ci/ansi2html.rb +++ b/lib/gitlab/ci/ansi2html.rb @@ -200,7 +200,9 @@ module Gitlab css_classes = %w[section line] + sections.map { |section| "s_#{section}" } end - write_in_tag %{<br/>} + ensure_open_new_tag + write_raw %{<br/>} + close_open_tags write_raw %{<span class="#{css_classes.join(' ')}"></span>} if css_classes.any? @lineno_in_section += 1 open_new_tag |