Keep empty line at end of code block #2159

Open
opened 2026-02-05 03:08:54 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @orliac on GitHub (Mar 16, 2021).

Describe the bug
We would like to have an empty line at the end of a code block.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to Formats -> Code Block and insert the following (3 lines + an empty line at the end)
line 1
line 2
line 3

Expected behavior
We expect the empty line to be visible, but it is not.

EXPECTED:
image

ACTUAL:
image

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 0.31.4
  • PHP Version: php 7.3
  • Hosting Method (Nginx/Apache/Docker): Docker
Originally created by @orliac on GitHub (Mar 16, 2021). **Describe the bug** We would like to have an empty line at the end of a code block. **Steps To Reproduce** Steps to reproduce the behavior: 1. Go to Formats -> Code Block and insert the following (3 lines + an empty line at the end) ``` line 1 line 2 line 3 ``` **Expected behavior** We expect the empty line to be visible, but it is not. __EXPECTED__: ![image](https://user-images.githubusercontent.com/36704287/111337413-5da09500-8676-11eb-9e70-ada8d383c24c.png) __ACTUAL__: ![image](https://user-images.githubusercontent.com/36704287/111337665-8fb1f700-8676-11eb-8a26-672545515c86.png) **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): 0.31.4 - PHP Version: php 7.3 - Hosting Method (Nginx/Apache/Docker): Docker
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2159