From 9ba0c75c583c191c0dbc994f499c80344004fe06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Tue, 4 May 2021 12:18:36 +0200 Subject: [PATCH] remove \t from subjects (#141) --- CHANGELOG.md | 2 +- src/table.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4043bcf3..16500759 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Table with subject containing `\r` or `\n`[#141] +- Table with subject containing `\r`, `\n` or `\t` [#141] - Overflow panic when shrink column [#138] - Vim plugin empty mailbox message [#136] diff --git a/src/table.rs b/src/table.rs index 7e50d7f5..a1ee6305 100644 --- a/src/table.rs +++ b/src/table.rs @@ -44,7 +44,8 @@ impl Cell { styles: Vec::new(), value: String::from(value.as_ref()) .replace("\r", "") - .replace("\n", ""), + .replace("\n", "") + .replace("\t", ""), shrinkable: false, } }