Skip to content

Commit

Permalink
Merge c3c7b19 into f855d6f
Browse files Browse the repository at this point in the history
  • Loading branch information
liuslevis committed Sep 28, 2015
2 parents f855d6f + c3c7b19 commit 342d898
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Core/Source/DTTextAttachmentHTMLElement.m
Expand Up @@ -31,6 +31,9 @@ - (id)initWithName:(NSString *)name attributes:(NSDictionary *)attributes option
_textAttachment = attachment;

// to avoid much too much space before the image
if (nil == _paragraphStyle)
_paragraphStyle = [[DTCoreTextParagraphStyle alloc] init];

_paragraphStyle.lineHeightMultiple = 1;

// specifiying line height interfers with correct positioning
Expand Down

0 comments on commit 342d898

Please sign in to comment.