30.05.2022, 06:45
Set Additional class to pre, add this to Custom CSS:
Use string.format to keep values at the same position no matter how many digits they have. 10.3 means print at least 10 character and use 3 decimal places. If the number is larger then the following values will be shifted so adjust width as needed.
Code:
.pre {
white-space: pre;
font-family: monospace;
}
Use string.format to keep values at the same position no matter how many digits they have. 10.3 means print at least 10 character and use 3 decimal places. If the number is larger then the following values will be shifted so adjust width as needed.
Code:
v1 = 1.234
v2 = 23.45
v3 = 345.6
v4 = 4567
text = string.format('%10.3fW %10.3fW %10.3fW %10.3fW', v1, v2, v3, v4)