Skip to content
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

Formatter instability: Long string #7463

Closed
MichaReiser opened this issue Sep 17, 2023 · 0 comments · Fixed by #7475
Closed

Formatter instability: Long string #7463

MichaReiser opened this issue Sep 17, 2023 · 0 comments · Fixed by #7475
Assignees
Labels
bug Something isn't working formatter Related to the formatter

Comments

@MichaReiser
Copy link
Member

Input

mp3fmt="<span style=\"color: grey\"><a href=\"{}\" id=\"audiolink\">listen</a></span></br>\n"

Format 1

mp3fmt = '<span style="color: grey"><a href="{}" id="audiolink">listen</a></span></br>\n'

Format 2

mp3fmt = (
    '<span style="color: grey"><a href="{}" id="audiolink">listen</a></span></br>\n'
)

This could be due to the optimization where strings don't use the BestFit layout when they exceed a certain length (Format 1, but Format 2 uses best fit)

Sourced by #7445

@MichaReiser MichaReiser added bug Something isn't working formatter Related to the formatter labels Sep 17, 2023
@MichaReiser MichaReiser added this to the Formatter: Beta milestone Sep 17, 2023
@MichaReiser MichaReiser self-assigned this Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working formatter Related to the formatter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant