aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-symfony-console/src/helper/table.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe-symfony-console/src/helper/table.rs')
-rw-r--r--crates/shirabe-symfony-console/src/helper/table.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe-symfony-console/src/helper/table.rs b/crates/shirabe-symfony-console/src/helper/table.rs
index 177e23c0..06743dbf 100644
--- a/crates/shirabe-symfony-console/src/helper/table.rs
+++ b/crates/shirabe-symfony-console/src/helper/table.rs
@@ -745,7 +745,7 @@ impl Table {
if shirabe_php_shim::strstr(&cell_str, "\n").is_none() {
continue;
}
- let eol = if shirabe_php_shim::str_contains(&cell_str, "\r\n") {
+ let eol = if cell_str.contains("\r\n") {
"\r\n"
} else {
"\n"
@@ -846,7 +846,7 @@ impl Table {
let cell_str = cell.to_php_string();
let mut lines = vec![cell.clone()];
if shirabe_php_shim::strstr(&cell_str, "\n").is_some() {
- let eol = if shirabe_php_shim::str_contains(&cell_str, "\r\n") {
+ let eol = if cell_str.contains("\r\n") {
"\r\n"
} else {
"\n"