Permalink
Browse files

Merge pull request #152 from Soryu/master

Render LINEBREAK as simple line break instead of new paragraph
  • Loading branch information...
2 parents 6a57837 + 03de59b commit f9f276d7e321cbf984954892323335ef49eb0ce8 @DDRBoxman DDRBoxman committed Mar 6, 2014
@@ -134,6 +134,11 @@ - (void)insertNewlineIntoTarget:(NSMutableAttributedString *)target
[target appendAttributedString:[[NSMutableAttributedString alloc] initWithString:@"\n"]];
}
+- (void)insertLineSeparatorIntoTarget:(NSMutableAttributedString *)target
+{
+ [target appendAttributedString:[[NSMutableAttributedString alloc] initWithString:@"\u2028"]];
+}
+
#pragma mark Span Element Rendering
- (void)renderSpanElement:(BPElement *)element
@@ -234,7 +239,7 @@ - (void)renderLinkElement:(BPElement *)element
- (void)renderLineBreak:(BPElement *)element
toTarget:(NSMutableAttributedString *)target
{
- [self insertNewlineIntoTarget:target];
+ [self insertLineSeparatorIntoTarget:target];
}
#pragma mark Block Element Rendering
@@ -3,7 +3,8 @@
###Even smaller header
Paragraphs are obviously supported along with all the fancy text styling you could want.
-There is *italic*, **bold** and ***bold italic***. Even links are supported, visit the
+There is *italic*, **bold** and ***bold italic***.
+Even links are supported, visit the
github page for Bypass [here](https://github.com/Uncodin/bypass).
* Nested List

0 comments on commit f9f276d

Please sign in to comment.