Bookstack: Don't add an unintended new line in code block

Created on 7 Feb 2020  路  2Comments  路  Source: BookStackApp/BookStack

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

Bug Front-End

Most helpful comment

@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.

All 2 comments

@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.

Thanks again for reporting @hhk7734.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alex2702 picture alex2702  路  3Comments

Abijeet picture Abijeet  路  3Comments

spacesven picture spacesven  路  3Comments

Zeigren picture Zeigren  路  3Comments

Biepa picture Biepa  路  3Comments