Don't add an unintended new line in code block #1522

Closed
opened 2026-02-05 01:08:32 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @hhk7734 on GitHub (Feb 7, 2020).

Describe the bug
New lines are added automatically when the code block is rendered.
Markdown is the editor.

Steps To Reproduce

Expected behavior
I hope that it does not add an unintended new line.

Screenshots
https://docs.loliot.net/link/133#bkmrk-installation

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): v0.28.0
  • PHP Version: 7.2
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context

Originally created by @hhk7734 on GitHub (Feb 7, 2020). **Describe the bug** New lines are added automatically when the code block is rendered. Markdown is the editor. **Steps To Reproduce** **Expected behavior** I hope that it does not add an unintended new line. **Screenshots** https://docs.loliot.net/link/133#bkmrk-installation **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): v0.28.0 - PHP Version: 7.2 - Hosting Method (Nginx/Apache/Docker): Apache **Additional context**
OVERLORD added the 🐛 Bug💻 Front-End labels 2026-02-05 01:08:32 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 10, 2020):

@hhk7734 Thanks for reporting, Assigned to the next bugfix release.

I did remove some code that trimmed these blocks, as part of the last release, since that caused issues with intentional indenting but it looks like we should still trim the end.

@ssddanbrown commented on GitHub (Feb 10, 2020): @hhk7734 Thanks for reporting, Assigned to the next bugfix release. I did remove some code that trimmed these blocks, as part of the last release, since that caused issues with intentional indenting but it looks like we should still trim the end.
Author
Owner

@ssddanbrown commented on GitHub (Feb 15, 2020):

Thanks again for reporting @hhk7734.

A patch has been applied and will be deployed as part of the next bugfix release.

@ssddanbrown commented on GitHub (Feb 15, 2020): Thanks again for reporting @hhk7734. A patch has been applied and will be deployed as part of the next bugfix release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1522