Export PDF renders code block incorrectly #365

Closed
opened 2026-02-04 19:03:41 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @ciphermenial on GitHub (Jul 7, 2017).

Bug Report

  • BookStack Version: 0.17.0
  • PHP Version: 7.0.19-1
  • MySQL Version: Ver 15.1 Distrib 10.1.23-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Expected Behavior

Export PDF and the numbering for the code is displayed the same as in the app.

Actual Behavior

Export PDF and code does not have numbers listed and the section where the numbers should be is misaligned. See attached.

capture

Originally created by @ciphermenial on GitHub (Jul 7, 2017). ### Bug Report * BookStack Version: 0.17.0 * PHP Version: 7.0.19-1 * MySQL Version: Ver 15.1 Distrib 10.1.23-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 ##### Expected Behavior Export PDF and the numbering for the code is displayed the same as in the app. ##### Actual Behavior Export PDF and code does not have numbers listed and the section where the numbers should be is misaligned. See attached. ![capture](https://user-images.githubusercontent.com/1924904/27943740-b9467564-6320-11e7-9f8e-75bc56eaf307.PNG)
OVERLORD added the 🐛 Bug label 2026-02-04 19:03:41 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 10, 2017):

@simplexion Thanks for reporting this. I'm afraid the line-numbers system is done with JavaScript so it's unlikely to get that to work for PDF exports bit the section dropping down like that should definitely be fixed. Marked as a bug to be fixed.

@ssddanbrown commented on GitHub (Jul 10, 2017): @simplexion Thanks for reporting this. I'm afraid the line-numbers system is done with JavaScript so it's unlikely to get that to work for PDF exports bit the section dropping down like that should definitely be fixed. Marked as a bug to be fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#365