dosubot[bot] commented on issue #36042:
URL: https://github.com/apache/superset/issues/36042#issuecomment-3503976284

   <!-- Greeting -->
   Hi @adriancerejo! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping 
the superset team.
   
   <!-- Answer -->
   You're right—Superset uses ag-Grid for table displays, and by default, the 
`.ag-cell` class applies `white-space: normal`, which collapses consecutive 
spaces. That's why your option symbol's whitespace isn't preserved. Superset 
doesn't currently override this, so whitespace-sensitive data like option 
symbols can be misrepresented unless you add a CSS override.
   
   Your workaround (`white-space: pre-wrap;`) is the correct approach. For a 
more permanent fix, you can add a custom CSS rule targeting `.ag-cell` 
(globally or for specific columns if you want to avoid side effects):
   
   ```css
   .ag-cell {
     white-space: pre-wrap;
   }
   ```
   
   Or, for a more targeted approach (for example, only for the `osi_symbol` 
column), you can use a custom cell class in ag-Grid's column definition and 
then style that class:
   
   ```css
   .ag-cell.osi-symbol-cell {
     white-space: pre-wrap;
   }
   ```
   
   There isn't a built-in Superset config or UI option for this—CSS overrides 
are the main solution for now. This is a common workaround for 
whitespace/formatting issues in Superset tables and charts, especially for 
financial data that relies on precise formatting. See related discussions and 
workarounds [here](https://github.com/apache/superset/issues/35928) and 
[here](https://github.com/apache/superset/issues/33865).
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/653d74cb-1074-4860-9710-20b408cb61ee?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/653d74cb-1074-4860-9710-20b408cb61ee?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/653d74cb-1074-4860-9710-20b408cb61ee?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/653d74cb-1074-4860-9710-20b408cb61ee?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/653d74cb-1074-4860-9710-20b408cb61ee?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/653d74cb-1074-4860-9710-20b408cb61ee?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/653d74cb-1074-4860-9710-20b408cb61ee?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36042)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to