From c4d2cc8ac4cbb8d52088f6d8726c571c89f0975c Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 7 Oct 2016 10:57:28 +0200 Subject: [PATCH] Fixed problems with format of text in visual console. Ticket: 4013 (cherry picked from commit 92347901b3e65cc68be108a56c58f19650fe4186) --- pandora_console/include/functions_visual_map.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 6bdc617829..92196c59ce 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -1147,6 +1147,10 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY) $value .= " " . $unit_text; } } + + $value = preg_replace ('/\n/i','
',$value); + $value = preg_replace ('/\s/i',' ',$value); + return $value; break; case SIMPLE_VALUE_MAX: