chiark / gitweb /
Stop using ~ around struck-out text.
authorSimon Tatham <anakin@pobox.com>
Mon, 1 Jan 2024 13:40:26 +0000 (13:40 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 1 Jan 2024 13:40:26 +0000 (13:40 +0000)
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

index 156512d70735e3fade70855f0c975fac74cdcae0..b470ad84acd7a11d213c43ac7616212e05725c2a 100644 (file)
@@ -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) {