mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-16 20:57:53 +08:00
fix table with subject containing \r\n(#141)
This commit is contained in:
+3
-1
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user