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+
16## [ 2.1.4] - October 3, 2021:
27* Fix regression in usage of line breaks in body being stripped
38
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.
9898Add 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| | | | | | | | | | | |
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11name : flutter_html
22description : A Flutter widget rendering static HTML and CSS as Flutter widgets.
3- version : 2.1.4
3+ version : 2.1.5
44homepage : https://github.com/Sub6Resources/flutter_html
55
66environment :
You can’t perform that action at this time.
0 commit comments