Hi,
I'm having a table holding logs which I want to present in redash query/dashboard. Problem is the log is stripped of newlines and tabs so it's really difficult to view it right. Is there any solution for that?
@kravets-levko is there a simple way to make the table preserve things like line breaks?
@idoDavid you could try to add some html to you query, like this:
SELECT '<pre class="bg-white p-0 b-0">' || log_column || '</pre>' AS log_column
FROM table
This will wrap value with <pre> tag with white background (bg-white), without border (b-0) and additional padding (p-0).
@kravets-levko worked like a charm, thanks!!
Most helpful comment
@idoDavid you could try to add some
htmlto you query, like this:This will wrap value with
<pre>tag with white background (bg-white), without border (b-0) and additional padding (p-0).