From 2d15055f34a2b3f617f3a0b34eca5669ee660cf0 Mon Sep 17 00:00:00 2001 From: ngaurav Date: Tue, 14 Apr 2020 15:24:40 +0530 Subject: [PATCH] Fixed #218 --- lib/html_parser.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/html_parser.dart b/lib/html_parser.dart index d79f411d4e..8a478bf914 100644 --- a/lib/html_parser.dart +++ b/lib/html_parser.dart @@ -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;