Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
1ceb2411
Commit
1ceb2411
authored
Apr 14, 2018
by
Dimitris Koutsogiorgas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always ensure indentation level resets in UI
parent
d4468d5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
user_interface.rb
lib/cocoapods/user_interface.rb
+5
-0
No files found.
lib/cocoapods/user_interface.rb
View file @
1ceb2411
...
...
@@ -62,6 +62,7 @@ module Pod
self
.
indentation_level
+=
relative_indentation
self
.
title_level
+=
1
yield
if
block_given?
ensure
self
.
indentation_level
-=
relative_indentation
self
.
title_level
-=
1
end
...
...
@@ -83,6 +84,7 @@ module Pod
self
.
indentation_level
+=
relative_indentation
self
.
title_level
+=
1
yield
if
block_given?
ensure
self
.
indentation_level
-=
relative_indentation
self
.
title_level
-=
1
end
...
...
@@ -114,6 +116,7 @@ module Pod
self
.
indentation_level
+=
relative_indentation
self
.
title_level
+=
1
yield
if
block_given?
ensure
self
.
indentation_level
-=
relative_indentation
self
.
title_level
-=
1
end
...
...
@@ -140,6 +143,7 @@ module Pod
self
.
indentation_level
+=
relative_indentation
yield
if
block_given?
ensure
self
.
indentation_level
-=
relative_indentation
end
...
...
@@ -160,6 +164,7 @@ module Pod
self
.
indentation_level
+=
2
@treat_titles_as_messages
=
true
yield
if
block_given?
ensure
@treat_titles_as_messages
=
false
self
.
indentation_level
-=
2
end
...
...
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