File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
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
+
1
6
## [ 2.1.4] - October 3, 2021:
2
7
* Fix regression in usage of line breaks in body being stripped
3
8
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ A Flutter widget for rendering HTML and CSS as Flutter widgets.
98
98
Add the following to your ` pubspec.yaml ` file:
99
99
100
100
dependencies:
101
- flutter_html: ^2.1.4
101
+ flutter_html: ^2.1.5
102
102
103
103
## Currently Supported HTML Tags:
104
104
| | | | | | | | | | | |
Original file line number Diff line number Diff line change @@ -946,8 +946,8 @@ class HtmlParser extends StatelessWidget {
946
946
if (child is EmptyContentElement || child is EmptyLayoutElement ) {
947
947
toRemove.add (child);
948
948
} else if (child is TextContentElement
949
- && tree.name == "body"
950
- && child.text! .trim ( ).isEmpty) {
949
+ && tree.name == "body"
950
+ && child.text! .replaceAll ( ' ' , '' ).isEmpty) {
951
951
toRemove.add (child);
952
952
} else if (child is TextContentElement
953
953
&& child.text! .isEmpty
Original file line number Diff line number Diff line change 1
1
name : flutter_html
2
2
description : A Flutter widget rendering static HTML and CSS as Flutter widgets.
3
- version : 2.1.4
3
+ version : 2.1.5
4
4
homepage : https://github.com/Sub6Resources/flutter_html
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments