Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Theme: text justification looks bad (in narrow columns) #77

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

Closed
justvanrossum opened this issue May 9, 2021 · 4 comments · Fixed by #79
Closed

Theme: text justification looks bad (in narrow columns) #77

justvanrossum opened this issue May 9, 2021 · 4 comments · Fixed by #79

Comments

@justvanrossum
Copy link

I'm stoked to see the huge improvements of the docs on mobile. This is really fantastic.

One thing I noticed, though, is that there are often huge gaps between words. For example (on Android):
image
Using "text-align: left" would make this look a lot better.

I would go further, and recommend to never ever use "justify" at all: it generally reduces readability and often simply looks bad. Even with wider columns it often becomes a typographic disaster (Safari, desktop):
image

@JulienPalard
Copy link
Member

I don't know about the best practices about this. While I can understand the use of justify on multi-column displays (like printed newspapers) I don't feel it add any benefit on a single column of text, I'll be ok for this to be removed, but I bet many will complain too?

@justvanrossum
Copy link
Author

I don't know about the best practices about this.

I do: align left. Justified doesn't work well on the web, hyphenated or not.

Some references:

A good quote from the latter link: “And let’s face it: there is nothing about justified text that is meant to improve the reading experience. It is solely for the purpose of aesthetics.”

I'll be ok for this to be removed

That would be great, thanks for considering!

but I bet many will complain too?

Yeah, but that's a general problem with a project of this scale and visibility: you probably can't change a single pixel without someone tripping over it...

@hugovk
Copy link
Member

hugovk commented May 9, 2021

Similarly justified text is bad for accessibility:

@JulienPalard
Copy link
Member

@obulat PR fixing this can be tested at https://docs.python.org/3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants