Skip to content

Commit

Permalink
Merge pull request #695 from realm/trob-abstract-fix
Browse files Browse the repository at this point in the history
Fix abstract injection
  • Loading branch information
jpsim authored Dec 8, 2016
2 parents 6474207 + d2fc909 commit efc1603
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@

##### Bug Fixes

* None.
* Fix issue where existing abstracts for non custom sections would be completely
overwritten when using extra abstract injection with --abstract.
[Thibaud Robelain](https://github.com/thibaudrobelain)
[#600](https://github.com/realm/jazzy/issues/600)

## 0.7.3

Expand Down
2 changes: 1 addition & 1 deletion lib/jazzy/source_declaration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def objc_category_name
attr_accessor :nav_order

def overview
alternative_abstract || "#{abstract}\n\n#{discussion}".strip
"#{alternative_abstract}\n\n#{abstract}\n\n#{discussion}".strip
end

def alternative_abstract
Expand Down

0 comments on commit efc1603

Please sign in to comment.