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

Typo fix in rust-lint-config.md #4

Merged
merged 1 commit into from
May 28, 2024

Conversation

obi1kenobi
Copy link
Contributor

No description provided.

@obi1kenobi
Copy link
Contributor Author

Another thing you might consider is adding white-space: nowrap CSS to short code blocks that contain # symbols. Browsers' line wrapping algorithm assumes it can wrap between the # and subsequent characters, so you often end up with annoyingly line-broken code blocks that look like this:
code block with line break between # and subsequent text

For my blog, I've defined a CSS class called .nobr that looks like this:

.nobr {
    white-space: nowrap;
}

and then use it on one-line code elements at risk of having this problem (e.g. ones with # symbols) like so:

something something <span class="nobr">`#[repr(transparent)]`</span>

@suaviloquence
Copy link
Owner

Thank you!

@suaviloquence suaviloquence merged commit 03ff78e into suaviloquence:dev May 28, 2024
@obi1kenobi obi1kenobi deleted the patch-1 branch May 28, 2024 18:54
@obi1kenobi
Copy link
Contributor Author

Of course, happy to help! I really liked your post btw! It was very thoughtful, sparked some good discussion, and as a result all three of us (you, me, and Ed) are on the same page with each other about the plan here.

Are you posting links to your posts on social media btw? I'd be happy to boost / repost / retweet them if so.

@suaviloquence
Copy link
Owner

Are you posting links to your posts on social media btw? I'd be happy to boost / repost / retweet them if so.

I was thinking about making a mastodon or something for this, but i haven't yet. Thanks, and I'll let you know if I do.

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.

2 participants