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

Don't trim comments to the right #71

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Don't trim comments to the right #71

merged 1 commit into from
Jul 10, 2024

Conversation

hanno-becker
Copy link
Collaborator

We use fixed-width comments to align // gap annotations and the // ... position-visualization. With the previous behaviour of SourceLine._strip_comments(), the right-padding of the gap comment would be removed, leading to misaligned output.

This commit modifies comment trimming to use lstrip() only.

We use fixed-width comments to align `// gap` annotations and
the `// ...` position-visualization. With the previous behaviour
of `SourceLine._strip_comments()`, the right-padding of the `gap`
comment would be removed, leading to misaligned output.

This commit modifies comment trimming to use lstrip() only.
@hanno-becker hanno-becker merged commit 4d82d32 into main Jul 10, 2024
7 checks passed
@mkannwischer mkannwischer deleted the comment_trim branch July 10, 2024 08:07
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 this pull request may close these issues.

1 participant