Fixed problems with format of text in visual console. Ticket: 4013

(cherry picked from commit 92347901b3)
This commit is contained in:
m-lopez-f 2016-10-07 10:57:28 +02:00
parent 121c3a1af8
commit c4d2cc8ac4
1 changed files with 4 additions and 0 deletions

View File

@ -1147,6 +1147,10 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
$value .= " " . $unit_text;
}
}
$value = preg_replace ('/\n/i','<br>',$value);
$value = preg_replace ('/\s/i','&nbsp;',$value);
return $value;
break;
case SIMPLE_VALUE_MAX: