Bump html2text from 0.12.5 to 0.13.6 (#383)

* Bump html2text from 0.12.5 to 0.13.6

Bumps [html2text](https://github.com/jugglerchris/rust-html2text) from 0.12.5 to 0.13.6.
- [Changelog](https://github.com/jugglerchris/rust-html2text/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jugglerchris/rust-html2text/compare/0.12.5...0.13.6)

---
updated-dependencies:
- dependency-name: html2text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fixed compilation error

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maarifa Maarifa <maarifamaarifa20@gmail.com>
This commit is contained in:
dependabot[bot]
2024-12-27 19:50:16 +03:00
committed by GitHub
parent f83a1f6199
commit cab8dbc54d
4 changed files with 20 additions and 13 deletions

27
Cargo.lock generated
View File

@@ -804,7 +804,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e"
dependencies = [
"termcolor",
"unicode-width",
"unicode-width 0.1.13",
]
[[package]]
@@ -1945,22 +1945,23 @@ dependencies = [
[[package]]
name = "html2text"
version = "0.12.5"
version = "0.13.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c66ee488a63a92237d5b48875b7e05bb293be8fb2894641c8118b60c08ab5ef"
checksum = "1bf7722c2ffdd62628b6e13065b6ab6cf154a236bd476c6e89af1352d745b83e"
dependencies = [
"html5ever",
"markup5ever",
"nom",
"tendril",
"thiserror 1.0.69",
"unicode-width",
"thiserror 2.0.9",
"unicode-width 0.2.0",
]
[[package]]
name = "html5ever"
version = "0.27.0"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c13771afe0e6e846f1e67d038d4cb29998a6779f93c809212e4e9c32efd244d4"
checksum = "2e15626aaf9c351bc696217cbe29cb9b5e86c43f8a46b5e2f5c6c5cf7cb904ce"
dependencies = [
"log",
"mac",
@@ -2833,9 +2834,9 @@ dependencies = [
[[package]]
name = "markup5ever"
version = "0.12.1"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16ce3abbeba692c8b8441d036ef91aea6df8da2c6b6e21c7e14d3c18e526be45"
checksum = "82c88c6129bd24319e62a0359cb6b958fa7e8be6e19bb1663bc396b90883aca5"
dependencies = [
"log",
"phf",
@@ -3844,7 +3845,7 @@ dependencies = [
"is-terminal",
"lazy_static",
"term",
"unicode-width",
"unicode-width 0.1.13",
]
[[package]]
@@ -5419,6 +5420,12 @@ version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"
[[package]]
name = "unicode-width"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd"
[[package]]
name = "unicode-xid"
version = "0.2.4"

View File

@@ -33,7 +33,7 @@ lazy_static = "1.5.0"
sha2 = "0.10.8"
notify-rust = "4.11.3"
chrono = { version = "0.4.38", features = ["serde"] }
html2text = "0.12.5"
html2text = "0.13.6"
bytes = "1.8.0"
rfd = "0.15.1"
image = "0.25.5"

View File

@@ -241,7 +241,7 @@ pub fn ended_widget<'b>(
pub fn summary_widget(series_info: &SeriesMainInformation) -> iced::Element<'_, Message> {
if let Some(summary) = &series_info.summary {
let summary = html2text::from_read(summary.as_bytes(), 1000);
let summary = html2text::from_read(summary.as_bytes(), 1000).unwrap_or_default();
text(summary).size(11).width(880).into()
} else {
text("").into()

View File

@@ -170,7 +170,7 @@ pub mod episode_widget {
fn summary_widget(episode_information: &EpisodeInfo) -> Text<'static> {
if let Some(summary) = &episode_information.summary {
let summary = html2text::from_read(summary.as_bytes(), 1000);
let summary = html2text::from_read(summary.as_bytes(), 1000).unwrap_or_default();
text(summary).size(11)
} else {
text("")