wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Code block does not wrap text when printing

Open adjurk opened this issue 5 years ago • 3 comments

Describe the bug Using built-in print feature, if there's a code block which contains text that is wider than the printed pdf, an unscrollable scroll bar is displayed.

To Reproduce Steps to reproduce the behavior:

  1. Create a new Wiki page
  2. Paste a wide code block, for ex:
mkdir -p /tmp/gitea-dump/home-git-gitea-repositories && cp -r /home/git/gitea-repositories/* /tmp/gitea-dump/home-git-gitea-repositories
  1. Press the Print button in Wiki.js -> Print to PDF
  2. A pdf with an unscrollable scroll bar is generated inside that pdf.

Expected behavior Text inside code block is automatically wrapped.

Screenshots https://i.imgur.com/78WQ6Bp.png

Host Info (please complete the following information):

  • OS: Windows 10
  • Tested browsers: Google Chrome 79.0.3945.130, Microsoft Edge 44.18362.449.0 (EdgeHTML 18.18362)
  • Wiki.js version: 2.0.12

adjurk avatar Feb 18 '20 16:02 adjurk

do we have any update on this Bug?

iamshalin avatar Oct 02 '23 18:10 iamshalin

any update on this?

mudasarellahi avatar May 31 '24 21:05 mudasarellahi

Hello guys, I just fixed the issue.

@NGPixel can you review the pull request please? https://github.com/requarks/wiki/pull/7224

oliveiradouglas avatar Jun 18 '24 16:06 oliveiradouglas