Skip to content

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

@charlesr1971

Description

@charlesr1971

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions