Skip to content

Commit

Permalink
[Show] Fix printing with --no-color
Browse files Browse the repository at this point in the history
Closes #267.
  • Loading branch information
segiddins committed Jun 27, 2015
1 parent 700e41b commit bcefbe9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Xcodeproj Changelog

## Master

##### Bug Fixes

* Allow `xcodeproj show` to accept `--no-color` as an option without crashing.
[Samuel Giddins](https://github.com/segiddins)
[#267](https://github.com/CocoaPods/Xcodeproj/issues/267)


## 0.25.0

##### Enhancements
Expand Down
4 changes: 2 additions & 2 deletions lib/xcodeproj/command/show.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def run
yaml = value.to_yaml
yaml.gsub!(/^---$/, '')
yaml.gsub!(/^-/, "\n-")
section << yaml
sections << section
yaml.prepend(section)
sections << yaml
end
puts sections * "\n\n"
end
Expand Down

0 comments on commit bcefbe9

Please sign in to comment.