From 92668713119f2f70d5b90193edfb2fc01b77f0de Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 1 Jan 2024 13:40:26 +0000 Subject: [PATCH] Stop using ~ around struck-out text. Apparently html2text is completely happy to render strikeout via U+0336 COMBINING LONG STROKE OVERLAY, and needs no support from the terminal escape-sequence system at all. So I don't need an artificial indication that it happened. --- src/html.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html.rs b/src/html.rs index 156512d..b470ad8 100644 --- a/src/html.rs +++ b/src/html.rs @@ -46,11 +46,11 @@ impl TextDecorator for OurDecorator { /// Return an annotation and rendering prefix for strikeout fn decorate_strikeout_start(&mut self) -> (String, Self::Annotation) { - ("~".to_string(), ' ') + ("".to_string(), ' ') } /// Return a suffix for after a strikeout. - fn decorate_strikeout_end(&mut self) -> String { "~".to_string() } + fn decorate_strikeout_end(&mut self) -> String { "".to_string() } /// Return an annotation and rendering prefix for code fn decorate_code_start(&mut self) -> (String, Self::Annotation) { -- 2.30.2