My Java code sends data to the browser via an HTTP request, and the output looks something like this:
JAVA CODE OUTPUT
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | | | 3 (100)| |
| 1 | FOR UPDATE | | | | | |
| 2 | BUFFER SORT | | | | | |
| 3 | TABLE ACCESS FULL| DD | 4 | 160 | 3 (0)| 00:00:01 |
However, when I display it in the browser, the formatting is not great. I have an array of strings that I am displaying using ng-repeat
, and while it looks fine in Java code, it doesn't look good in the browser. I tried preserving white spaces, but it didn't make a difference. All I need to do is preserve all spaces in the string.
{
white-space: pre;
}
Any ideas or suggestions on how to improve the display?