Skip to content

renderToString extension method is internal, making it difficult to write a humanized string representation to non-stdout #1129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
henrylegrys opened this issue Apr 16, 2025 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@henrylegrys
Copy link

AnyFrame#renderToString is internal and only exposed via the print extension method. This method appears to be the only way to customize the parameters of renderToString - in the other places it is exposed, for example DataFrame#toString, there is no way to pass custom arguments.

In my application I have a custom Appendable that I want to print the formatted representation to instead - currently this appears to be impossible.

Would it be possible to either:

  • change renderToString's visibility to public, allowing for applications to write it to other streams; or
  • add another extension method similar to print, but which can specify an Appendable as the target?

I suppose there are also some open questions about terminal capabilities (in the case of outputting to a terminal) - for example, not all terminals have Unicode support, and therefore might not support the crop symbols used for table borders. Perhaps some kind of TTY-aware interface could be added?

@Jolanrensen Jolanrensen added the enhancement New feature or request label Apr 17, 2025
@Jolanrensen Jolanrensen added this to the Backlog milestone Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants