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

Line wrapping in code blocks #51

Closed
raine opened this issue May 22, 2015 · 3 comments
Closed

Line wrapping in code blocks #51

raine opened this issue May 22, 2015 · 3 comments
Assignees

Comments

@raine
Copy link

raine commented May 22, 2015

https://gistlog.co/raine/d12d0ec3e72b2945510b

It's better to scroll horizontally than wrap lines of code unpredictably.

@adamwathan
Copy link
Contributor

I basically ported all of the GistLog styling from my personal blog, and the stuff doesn't wrap there but does wrap here :/

http://adamwathan.me/2013/10/02/putting-your-laravel-controllers-on-a-diet

https://gistlog.co/adamwathan/5091f790a7117dbe7f2b

I scoured the CSS and feel pretty stupid because I can't for the life of me find the necessary combination of changes to get that to stop wrapping and start scrolling! Bah.

@raine
Copy link
Author

raine commented May 23, 2015

Try

word-wrap: normal;
white-space: pre;

on the code <code> tag.

@adamwathan
Copy link
Contributor

Man no idea how I missed that one, thanks @raine! PR is open now pending @mattstauffer's merge.

mattstauffer added a commit that referenced this issue May 24, 2015
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

4 participants