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

It should be white-space: pre-line not white-space: pre-wrap #6

Open
charlesr1971 opened this issue Dec 8, 2022 · 2 comments
Open
Labels

Comments

@charlesr1971
Copy link

charlesr1971 commented Dec 8, 2022

When I use the default CSS, using the Stylus extension, the lines are not wrapped, but after editing:

body:not(.nowrap) .blob-code-inner,
 body:not(.nowrap) .markdown-body pre > code,
 body:not(.nowrap) .markdown-body .highlight > pre {
   white-space: pre-wrap !important;
   word-break: break-all !important;
   overflow-wrap: break-word !important;
   display: block !important;
 }

To:

 body:not(.nowrap) .blob-code-inner,
  body:not(.nowrap) .markdown-body pre > code,
  body:not(.nowrap) .markdown-body .highlight > pre {
    white-space: pre-line !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    display: block !important;
  }

Word wrapping occurs correctly

@Mottie
Copy link
Member

Mottie commented Dec 9, 2022

Switching to pre-line removes the tab indention

toggle

@silverwind
Copy link
Member

Maybe we can actually remove altering white-space altogether.

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

No branches or pull requests

3 participants