Skip to content

Conversation

@oliveiradouglas
Copy link

Issue reference: #1496

Fix Printscreen:

Screenshot 2024-06-18 at 13 34 52

@aapwikip
Copy link

@oliveiradouglas Does this PR fix this issue as well? Looks Similar

#6759

@oliveiradouglas
Copy link
Author

@wikiaap yes, look:

Before the fix, the code block was cut:

Screenshot 2024-06-23 at 08 34 56

After fix, the code block respects page width and wraps the text:

Screenshot 2024-06-18 at 13 34 52

@aapwikip
Copy link

aapwikip commented Jul 4, 2024

@oliveiradouglas what if there are no white spaces e.g. a website link as shows in the given issue? #6789

@oliveiradouglas
Copy link
Author

oliveiradouglas commented Jul 26, 2024 via email

@BPowell76
Copy link

BPowell76 commented Nov 18, 2024

Issue reference: #1496

Fix Printscreen:

Screenshot 2024-06-18 at 13 34 52

If you want the PR to include the issue it closes, add the following to your initial comment:

closes #1496

This will add a link to the issue in the sidebar in the Development section

@zha0jf
Copy link

zha0jf commented Apr 21, 2025

add these lines at this position, can wrap texts with no white spaces when printing.

    .prismjs{
      box-shadow: none;
      background-color: #FFF;

      /*  add these lines */
      white-space: pre-wrap !important; 
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;

      @at-root .theme--dark & {
        background-color: #FFF;
      }

      > code {
        color: #000;
        box-shadow: none;
        text-shadow: none;

        /*  add these lines */
        white-space: pre-wrap !important; 
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
      }
    }

@oliveiradouglas what if there are no white spaces e.g. a website link as shows in the given issue? #6789

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.

5 participants