Skip to content

print md file will shows the directory in the ending page #8419

Closed

Description

@xuhaida76

Describe the bug
After upgrading to Nextcloud 33.0.0, when print the md file in more than one page , you will see unnessecery directory information in the ending page. Not happened in the Nextcloud 32.0.4.

To Reproduce
Steps to reproduce the behavior:

  1. open an md file in files
  2. Go to browser
  3. Click on 'print'
  4. Scroll down to the ending page
  5. See error
    Expected behavior
    No smart picker directory in the ending page.

Screenshots

Image

Server details:

  • Nextcloud version: Nextcloud 33.0.0

Client details:

  • OS: Windows
  • Browser: Firefox, edge.
  • Browser version: 149.0
  • Device: desktop

Activity

  1. xuhaida76 commented on Mar 31, 2026

    @xuhaida76
    Author

    After upgrade to 33.0.1, PDF file correct now. I closed this issue.

  2. xuhaida76 commented on Apr 6, 2026

    @xuhaida76
    Author

    Sorry, It happened again, so I reopen this issue.

  3. Aveyron-RetD commented on Jun 10, 2026

    @Aveyron-RetD

    I can reproduce on 33.0.5

  4. CZDanol commented on Sep 12, 2026

    @CZDanol

    Still reproducible on 34.0.4/8.0.0

    Ghetto workaround:

    • Install the "Custom CSS" app
    • Put in this custom CSS:
    @media print {
      body:has(.editor__content) *:not(:has(.editor__content), .editor__content, .editor__content *) {
        display: none !important;
      }
    }
    

    And a drive-by workaround for printing an extra empty page if margins are not set to "none":

    @media print {
      body:has(.editor__content) { height: auto !important; }
      html:has(.editor__content) { height: auto !important; }
    }
    
  5. self-assigned this
    on Sep 14, 2026
  6. moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity teamon Sep 14, 2026
  7. moved this from 🧭 Planning evaluation (don't pick) to 🏗️ In progress in 📝 Productivity teamon Sep 14, 2026
  8. added 2 commits that reference this issue on Sep 14, 2026
    7927cdc
    fa54acd
  9. moved this from 🏗️ In progress to ☑️ Done in 📝 Productivity teamon Sep 15, 2026
  10. added 2 commits that reference this issue on Sep 15, 2026
    f53038f
    bdbdb78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions