Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed Oct 5, 2023
1 parent 9a5fc18 commit cb49740
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.1
- Update dependencies
- Improve documentation

## 2.0.0
- New `preferPlainText` option to use the mime message's plain text instead of the html part when available.
- Convert HTML line-breaks to plain text line-breaks when calling `HtmlToPlainTextConverter.convert(String html);`
Expand Down
2 changes: 1 addition & 1 deletion example/enough_mail_html_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class StyleTextDomTransformer extends DomTransformer {
TransformConfiguration configuration) {
final paragraphs = document.getElementsByTagName('p');
for (final paragraph in paragraphs) {
paragraph.attributes['style'] = configuration.customValues!['textStyle'];
paragraph.attributes['style'] = configuration.customValues?['textStyle'];
}
}
}
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ environment:
dependencies:
enough_mail: ^2.0.0
html: ^0.15.0
image: ^4.0.13
image: ^4.0.0

dependency_overrides:
xml: ^6.0.1
# out-comment for git or local development
# enough_mail:
# git:
Expand Down
5 changes: 1 addition & 4 deletions test/enough_mail_html_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void main() {

final meta = Element.html('<meta name="viewport" '
'content="width=device-width, initial-scale=1.0">');
document.head!.append(meta);
document.head?.append(meta);
final imageElements = document.getElementsByTagName('img');
for (final imageElement in imageElements) {
final src = imageElement.attributes['src'];
Expand All @@ -42,9 +42,6 @@ void main() {
}
}
//print(document.outerHtml);

final doc = parse('<p>hello world</p>');
// print(doc.outerHtml);
});
});
}

0 comments on commit cb49740

Please sign in to comment.