From edb426b1a34d5a6fce2cfd8f770011d0c926fa72 Mon Sep 17 00:00:00 2001 From: Stalwart Git Sync <279488187+stalwart-labs@users.noreply.github.com> Date: Sat, 28 Nov 2026 09:42:43 +0100 Subject: [PATCH] html_to_text: line breaks for block elements, spaces between table cells (fixes #172) --- CHANGELOG.md | 5 +++ Cargo.toml | 2 +- resources/decoders/html_to_text.json | 44 +++++++++++++++++++++---- src/decoders/html/mod.rs | 9 ++++-- src/decoders/html/text.rs | 48 +++++++++++++++++++++++++--- 5 files changed, 93 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db619f5..5ec97cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/). +## [1.0.3] - Unreleased + +### Fixed +- `html_to_text` and HTML previews ran words together across block elements, so `
One
Two
` gave `OneTwo`. Block elements such as `
`, `
  • `, `` and `

    ` now end the line and table cells are separated by a space, while a `
    ` or `

    ` inside `