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

Strange effect when centering code and -g (indentation guides) switch #5

Closed
willmcgugan opened this issue Jan 25, 2022 · 3 comments
Closed
Assignees

Comments

@willmcgugan
Copy link
Collaborator

When the -g switch (indentation guides) is applied with the -c switch (centering), then individual lines are centered, which completely breaks visuals.

@willmcgugan
Copy link
Collaborator Author

Here's what happens:

Screen Shot 2022-01-25 at 16 40 22

I suspect the justify center option is being passed down to the code that renders guides.

@darrenburns
Copy link
Member

Sorry, I don't understand the issue here - the picture you posted is what I would expect of center justified text. What are you expecting to happen with the indentation guides in this case? To me, justifying text is inherently going to cause misalignment in indentation.

@darrenburns
Copy link
Member

Pull request in rich for this: Textualize/rich#1872

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

No branches or pull requests

2 participants