From e44d39e4e9242502d25f1e480dda14531790fbf3 Mon Sep 17 00:00:00 2001 From: Nicolas Goutaland Date: Fri, 5 May 2017 12:32:05 +0200 Subject: [PATCH] Fixed newline bug on lists -_- --- CHANGELOG.md | 2 ++ Classes/GONMarkupListItem.m | 2 +- GONMarkupParser.podspec | 2 +- README.md | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 108e916..e98bdf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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
## [__0.7.3__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.3) Fixed new line charater bug on lists
## [__0.7.2__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.7.2) diff --git a/Classes/GONMarkupListItem.m b/Classes/GONMarkupListItem.m index ab7ec08..b01c4a3 100644 --- a/Classes/GONMarkupListItem.m +++ b/Classes/GONMarkupListItem.m @@ -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]; diff --git a/GONMarkupParser.podspec b/GONMarkupParser.podspec index e580ee1..7f23f56 100644 --- a/GONMarkupParser.podspec +++ b/GONMarkupParser.podspec @@ -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 diff --git a/README.md b/README.md index c6172c5..9e39f57 100644 --- a/README.md +++ b/README.md @@ -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
+__0.7.4__ : Fixed (again -_-) new line character bug on lists
+__0.7.3__ : Fixed new line character bug on lists
__0.7.2__ : Fixed bug #21
__0.7.1__ : Fixed warning #18
__0.7.0__ : Fixed bug #15