title: Last line of NSAttributedString not rendered in UILabel
body: <p>I have text which contains HTML formatting that I am trying to render on a view.  Currently I am using an <code>NSAtributedString</code> to display the text inside a <code>UILabel</code>.</p>
  
  <p>I obtain the attributed string as follows:</p>
  
  <pre><code>NSString *htmlString = @"&lt;html&gt;"
      "  &lt;head&gt;"
      "    &lt;style type='text/css'&gt;"
      "      body { font: 12pt 'Helvetica'; color: #111111; }"
      "    &lt;/style&gt;"
      "  &lt;/head&gt;"
      "  &lt;body&gt;";
      htmlString = [htmlString stringByAppendingString:self.descriptionText];
      htmlString = [htmlString stringByAppendingString:@"&lt;/body&gt;&lt;/html&gt;"];
  
      NSError *err = nil;
      NSAttributedString *attributedText = [[NSAttributedString alloc] initWithData: [htmlString dataUsingEncoding:NSUTF8StringEncoding]
                                                                            options: @{NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType}
                                                                 documentAttributes: nil
                                                                              error: &amp;err];
  </code></pre>
  
  <p>and then assign it to my label's <code>attributedText</code> property.  The property self.descriptionText is an <code>NSString</code> which can contain simple HTML markup such as <code>p</code> tags or <code>span</code> tags with inline styles. The technique of wrapping the string in an HTML document was found on another StackOverflow post.</p>
  
  <p>The <code>UILabel</code> is set to Lines = 0 and Line Breaks = Word Wrap.  The behavior that I am seeing is that the label grows properly to accommodate the whole string, but the last line of the string is never rendered, no matter how long the string is.</p>
  
  <p>Here is a screen capture with two labels.  The top label (with a yellow background) has my HTML attributed string in it.  You can see that the label has sized itself to allow 3 rows of text, but only two are rendered and the rest is truncated.  The second label (with a red background) has had a plain string assigned to its Text property and it draws just fine.</p>
  
  <p>The HTML string used in the example image contains the following text:</p>
  
  <pre><code>&lt;p&gt;With the world&amp;#39;s longest fan-vaulted ceiling, an original Reubens painting, and an excellent collection of medieval stained glass, this chapel has intrigue from multiple angles&lt;/p&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/LuNjS.png" alt="screen capture with two labels. The top has an NSAttributedString, the bottom has a plain NSString."></p>
  
  <p>An acceptable answer would explain how I can prevent the last line from being truncated or provide a simple alternative method for rendering HTML text to a view.  Thanks.</p>