fix table with subject containing \r\n(#141)

This commit is contained in:
Clément DOUIN
2021-05-03 14:23:23 +02:00
parent 05b0274725
commit e07e72f497
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -39,7 +39,9 @@ impl Cell {
pub fn new<T: AsRef<str>>(value: T) -> Self {
Self {
styles: Vec::new(),
value: String::from(value.as_ref()),
value: String::from(value.as_ref())
.replace("\r", "")
.replace("\n", ""),
shrinkable: false,
}
}