patternfly / react-log-viewer

MIT License
22 stars 14 forks source link

LogViewer is not maintaining indentation/removing spacing which is prefix to the log data #77

Open lokanandaprabhu opened 2 months ago

lokanandaprabhu commented 2 months ago

I have the below log downloaded from Pod logs and in the log file, there are spaces infront of strings "hello" and "hello1" and there is spacing in front of a,b and c in the object which is present in log

hello-goodbye-iu8saw-goodbye-pod-step-goodbye.log

In the below attached LogViewer we can see the above mentioned spaces are removed. If there are any objects in logs or if user intentionally added spacing infront of logs, those spacings are removed.

Screenshot 2024-09-04 at 6 46 55 PM