Skip to content

Commit

Permalink
fixes adding newline char issue in the text (#1465)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoo-msft authored and Gilles Khouzam committed May 21, 2018
1 parent 3cc71a8 commit 42e0271
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ - (void)processTextConcurrently:(std::shared_ptr<BaseCardElement> const &)textEl
^{
// Initializing NSMutableAttributedString for HTML rendering is very slow
NSMutableAttributedString *content = [[NSMutableAttributedString alloc] initWithData:htmlData options:options documentAttributes:nil error:nil];

// Drop newline char
[content deleteCharactersInRange:NSMakeRange([content length] -1, 1)];
__block ACRUILabel *lab = nil; // generate key for text map from TextBlock element's id
// synchronize access to text map
dispatch_sync(_serial_text_queue,
Expand Down

0 comments on commit 42e0271

Please sign in to comment.