Fixed problems with values in simple value in visual maps

This commit is contained in:
m-lopez-f 2016-11-21 08:51:42 +01:00
parent d7db3fdc96
commit f16628b8c1
2 changed files with 7 additions and 3 deletions

View File

@ -1167,6 +1167,7 @@ function visual_map_get_simple_value($type, $id_module, $period = SECONDS_1DAY)
}
$value = preg_replace ('/\n/i','<br>',$value);
$value = preg_replace ('/\t/i','&#09;',$value);
$value = preg_replace ('/\s/i','&nbsp;',$value);
return $value;

View File

@ -3317,8 +3317,11 @@ div#vc-controls img.vc-qr {
margin-right: 8px;
}
div.simple_value > span.text > p,
div.simple_value > a > span.text > p {
font-family: monospace;
div.simple_value > span.text > p > span > strong,
div.simple_value > span.text > p > strong,
div.simple_value > a > span.text p
{
font-family: monospace !important;
white-space: pre;
}