Skip to content

Commit

Permalink
Fixed newline bug on lists -_-
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasgoutaland committed May 5, 2017
1 parent 34ba518 commit e44d39e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Change Log
## [__0.7.4__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.4)
Fixed (again -_-) new line character bug on lists<br/>
## [__0.7.3__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.3)
Fixed new line charater bug on lists<br/>
## [__0.7.2__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.2)
Expand Down
2 changes: 1 addition & 1 deletion Classes/GONMarkupListItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ - (NSAttributedString *)prefixStringForContext:(NSMutableDictionary *)context at
prefix = [self unorderedListItemPrefixForIndentation:indentation position:position listConfiguration:listConfiguration context:context];

// Force new line
if (position != 0)
if (position > 1)
prefix = [@"\n" stringByAppendingString:prefix];

return [[NSAttributedString alloc] initWithString:prefix attributes:stringAttributes];
Expand Down
2 changes: 1 addition & 1 deletion GONMarkupParser.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "GONMarkupParser"
s.version = "0.7.3"
s.version = "0.7.4"
s.summary = "NSAttributedString generation from NSString using XML, that can be easily extended."
s.platform = :ios, "7.0"
s.description = <<-DESC
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ No, definitely not. I was still able to push to GitHub yesterday.
See the [Contributors page](https://github.com/nicolasgoutaland/GONMarkupParser/graphs/contributors) on github.
## Versions
__0.7.3__ : Fixed new line charater bug on lists<br/>
__0.7.4__ : Fixed (again -_-) new line character bug on lists<br/>
__0.7.3__ : Fixed new line character bug on lists<br/>
__0.7.2__ : Fixed bug #21<br/>
__0.7.1__ : Fixed warning #18<br/>
__0.7.0__ : Fixed bug #15<br/>
Expand Down

0 comments on commit e44d39e

Please sign in to comment.