mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-08 10:35:13 +00:00
fix table with subject containing \r\n
(#141)
This commit is contained in:
parent
05b0274725
commit
e07e72f497
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Table with subject containing `\r` or `\n`[#141]
|
||||||
|
|
||||||
## [0.3.0] - 2021-04-28
|
## [0.3.0] - 2021-04-28
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -225,3 +229,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
[#131]: https://github.com/soywod/himalaya/issues/131
|
[#131]: https://github.com/soywod/himalaya/issues/131
|
||||||
[#132]: https://github.com/soywod/himalaya/issues/132
|
[#132]: https://github.com/soywod/himalaya/issues/132
|
||||||
[#133]: https://github.com/soywod/himalaya/issues/133
|
[#133]: https://github.com/soywod/himalaya/issues/133
|
||||||
|
[#141]: https://github.com/soywod/himalaya/issues/141
|
||||||
|
|
|
@ -39,7 +39,9 @@ impl Cell {
|
||||||
pub fn new<T: AsRef<str>>(value: T) -> Self {
|
pub fn new<T: AsRef<str>>(value: T) -> Self {
|
||||||
Self {
|
Self {
|
||||||
styles: Vec::new(),
|
styles: Vec::new(),
|
||||||
value: String::from(value.as_ref()),
|
value: String::from(value.as_ref())
|
||||||
|
.replace("\r", "")
|
||||||
|
.replace("\n", ""),
|
||||||
shrinkable: false,
|
shrinkable: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue