Skip to content

Conversation

saldanhad
Copy link
Contributor

@saldanhad saldanhad commented Oct 4, 2024

Fixes:

  • Modified :class:HTMLFormatter._write_cell to escape regular spaces as  , ensuring multiple spaces are preserved in the HTML output.

@saldanhad
Copy link
Contributor Author

Hi @mroeschke, Since the this issue is related to the float formatting, I included the test cases for nbsp in the same test function. Request you to please review. Thanks!

@mroeschke mroeschke added the Output-Formatting __repr__ of pandas objects, to_string label Oct 4, 2024
@saldanhad saldanhad requested a review from mroeschke October 4, 2024 19:37
@mroeschke mroeschke added this to the 3.0 milestone Oct 4, 2024
@mroeschke mroeschke merged commit 4ad6c7a into pandas-dev:main Oct 4, 2024
51 checks passed
@mroeschke
Copy link
Member

Thanks @saldanhad

@saldanhad saldanhad deleted the io_strings branch October 4, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: pd.options.display.float_format did not follow left side or before decimal places format
2 participants