Fixed problems with values in simple value in visual maps

(cherry picked from commit f16628b8c1)
This commit is contained in:
m-lopez-f 2016-11-21 08:51:42 +01:00
parent ad29851cd2
commit 5fef13b97b
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -3339,8 +3339,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;
}