Permalink
Browse files

add new line on empty LI followed by new block

  • Loading branch information...
1 parent 389c7fe commit f46aeba64bebe264f99213785c20627a8a8bcb68 @odrobnik odrobnik committed Dec 30, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 Core/Source/DTHTMLElementLI.m
@@ -49,6 +49,15 @@ - (NSAttributedString *)attributedString
[tmpString appendAttributedString:prefixString];
}
+ if ([self.childNodes count])
+ {
+ DTHTMLElement *firstchild = [self.childNodes objectAtIndex:0];
+ if (firstchild.displayStyle != DTHTMLElementDisplayStyleInline)
+ {
+ [tmpString appendString:@"\n"];
+ }
+ }
+
NSAttributedString *childrenString = [super attributedString];
if (childrenString)

0 comments on commit f46aeba

Please sign in to comment.