From 3874fc6080e5dca7f0754ca493b8113c87969fc9 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 30 Aug 2024 17:17:26 +0200 Subject: [PATCH] lib/php/out.php --- lib/php/out.php | 20 ++++++++++---------- lib/php/out/human.php | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/php/out.php b/lib/php/out.php index cc3ae286..d03e47ba 100644 --- a/lib/php/out.php +++ b/lib/php/out.php @@ -590,9 +590,9 @@ my $sep_line_last = "└".join("┴",map {("─"x($_+2))} @len)."┘".chr(10); $len = $o['_human']['len']; fseek($o['_human']['tmpfile'], 0); - $sep = $o['_human']['sep']; - $sep_top = (isset($o['sep_top']) ? $o['sep_top'] : $sep); - $sep_bottom = (isset($o['sep_bottom']) ? $o['sep_bottom'] : $sep); + $sep = ' '.$o['_human']['sep'].' '; + $corner_top = (isset($o['corner_top']) ? $o['corner_top'] : $o['corner']); + $corner_bottom = (isset($o['corner_bottom']) ? $o['corner_bottom'] : $o['corner']); $sep_line = ''; $sep_line_top = ''; @@ -616,26 +616,26 @@ my $sep_line_last = "└".join("┴",map {("─"x($_+2))} @len)."┘".chr(10); } */ $sep_line_top .= - ( ($count == 0 and isset($o['corner_left_top'])) ? $o['corner_left_top'] : $o['corner']) - .str_repeat($o['line'],$i+mb_strlen($sep_top)-1) + ( ($count == 0 and isset($o['corner_left_top'])) ? $o['corner_left_top'] : $corner_top) + .str_repeat($o['line'],$i+mb_strlen($sep)-1) ; $sep_line .= (($count == 0 and isset($o['corner_left'])) ? $o['corner_left'] : $o['corner']) .str_repeat($o['line'],$i+mb_strlen($sep)-1) ; $sep_line_bottom .= - ( ($count == 0 and isset($o['corner_left_bottom'])) ? $o['corner_left_bottom'] : $o['corner']) - .str_repeat($o['line'],$i+mb_strlen($sep_bottom)-1) + ( ($count == 0 and isset($o['corner_left_bottom'])) ? $o['corner_left_bottom'] : $corner_bottom) + .str_repeat($o['line'],$i+mb_strlen($sep)-1) ; $count++; } $sep_line_top .= - (isset($o['corner_right_top']) ? $o['corner_right_top'] : $o['corner']) + (isset($o['corner_right_top']) ? $o['corner_right_top'] : $corner_top) .$o['_human']['eol'] ; $sep_line .= - (isset($o['corner_right']) ? $o['corner_right'] : $o['corner']) + (isset($o['corner_right']) ? $o['corner_right'] : $corner_bottom) .$o['_human']['eol'] ; $sep_line_bottom .= @@ -662,7 +662,7 @@ my $sep_line_last = "└".join("┴",map {("─"x($_+2))} @len)."┘".chr(10); echo $sep_line_top; } - $sep = $o['_human']['sep']; + #$sep = $o['_human']['sep']; #if ($count == 0) $sep = $sep_top; #if ($count == count($len)) $sep = $sep_bottom; diff --git a/lib/php/out/human.php b/lib/php/out/human.php index ba268855..2c1c2e6d 100644 --- a/lib/php/out/human.php +++ b/lib/php/out/human.php @@ -1,10 +1,10 @@ self::p('sep'," │ "), - 'sep_top' => self::p('sep_top'," ┬ "), - 'sep_bottom' => self::p('sep_bottom'," ┴ "), + 'sep' => self::p('sep',"│"), + 'corner_top' => self::p('sep_top',"┬"), 'corner' => self::p('corner',"┼"), + 'corner_bottom' => self::p('sep_bottom',"┴"), 'corner_left_top' => self::p('corner_left_top',"┌"), 'corner_right_top' => self::p('corner_right_top',"┐"), 'corner_left' => self::p('corner_left',"├"), -- 2.47.3