Skip to content

Commit

Permalink
Merge pull request #261 from ngaurav/ngaurav-patch-1
Browse files Browse the repository at this point in the history
Fixes issue #218
  • Loading branch information
Sub6Resources authored Apr 15, 2020
2 parents d1d5bd8 + 2d15055 commit 45838a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/html_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class HtmlParser extends StatelessWidget {
tree.text = tree.text.replaceFirst(' ', '');
}

if (tree.text.endsWith(' ')) {
if (tree.text.endsWith(' ') || tree.text.endsWith('\n')) {
wpc.data = true;
} else {
wpc.data = false;
Expand Down

0 comments on commit 45838a0

Please sign in to comment.