Skip to content

Commit 8f2c0c5

Browse files
authored
Merge pull request #859 from vrtdev/feature/release-215
Release 2.1.5
2 parents eeb5891 + 61c1f5f commit 8f2c0c5

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [2.1.5] - October 7, 2021:
2+
* Ignore unsupported custom style selectors when using fromCss
3+
* Fix SVG tag usage inside tables
4+
* Properly fix regression in usage of line breaks
5+
16
## [2.1.4] - October 3, 2021:
27
* Fix regression in usage of line breaks in body being stripped
38

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ A Flutter widget for rendering HTML and CSS as Flutter widgets.
9898
Add the following to your `pubspec.yaml` file:
9999

100100
dependencies:
101-
flutter_html: ^2.1.4
101+
flutter_html: ^2.1.5
102102

103103
## Currently Supported HTML Tags:
104104
| | | | | | | | | | | |

lib/html_parser.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,8 @@ class HtmlParser extends StatelessWidget {
946946
if (child is EmptyContentElement || child is EmptyLayoutElement) {
947947
toRemove.add(child);
948948
} else if (child is TextContentElement
949-
&& tree.name == "body"
950-
&& child.text!.trim().isEmpty) {
949+
&& tree.name == "body"
950+
&& child.text!.replaceAll(' ', '').isEmpty) {
951951
toRemove.add(child);
952952
} else if (child is TextContentElement
953953
&& child.text!.isEmpty

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_html
22
description: A Flutter widget rendering static HTML and CSS as Flutter widgets.
3-
version: 2.1.4
3+
version: 2.1.5
44
homepage: https://github.com/Sub6Resources/flutter_html
55

66
environment:

0 commit comments

Comments
 (0)