Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
720da07a
Commit
720da07a
authored
Jun 19, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
b2cff492
22755a4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
changelogs/unreleased/63417-add-missing-class.yml
changelogs/unreleased/63417-add-missing-class.yml
+5
-0
lib/gitlab/ci/ansi2html.rb
lib/gitlab/ci/ansi2html.rb
+1
-1
spec/lib/gitlab/ci/ansi2html_spec.rb
spec/lib/gitlab/ci/ansi2html_spec.rb
+2
-2
No files found.
changelogs/unreleased/63417-add-missing-class.yml
0 → 100644
View file @
720da07a
---
title
:
Indent collapsible sections
merge_request
:
29804
author
:
type
:
other
lib/gitlab/ci/ansi2html.rb
View file @
720da07a
...
...
@@ -310,7 +310,7 @@ module Gitlab
if
@sections
.
any?
css_classes
<<
"section"
css_classes
<<
"js-section-header"
if
@lineno_in_section
==
0
css_classes
<<
"js-section-header
section-header
"
if
@lineno_in_section
==
0
css_classes
+=
sections
.
map
{
|
section
|
"js-s-
#{
section
}
"
}
end
...
...
spec/lib/gitlab/ci/ansi2html_spec.rb
View file @
720da07a
...
...
@@ -231,8 +231,8 @@ describe Gitlab::Ci::Ansi2html do
it
'prints light red'
do
text
=
"
#{
section_start
}
\e
[91mHello
\e
[0m
\n
#{
section_end
}
"
header
=
%{<span class="term-fg-l-red section js-section-header js-s-#{class_name(section_name)}">Hello</span>}
line_break
=
%{<span class="section js-section-header js-s-#{class_name(section_name)}"><br/></span>}
header
=
%{<span class="term-fg-l-red section js-section-header
section-header
js-s-#{class_name(section_name)}">Hello</span>}
line_break
=
%{<span class="section js-section-header
section-header
js-s-#{class_name(section_name)}"><br/></span>}
line
=
%{<span class="section line s_#{class_name(section_name)}"></span>}
empty_line
=
%{<span class="section js-s-#{class_name(section_name)}"></span>}
html
=
"
#{
section_start_html
}#{
header
}#{
line_break
}#{
line
}#{
empty_line
}#{
section_end_html
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment