-
- Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Attempted Debugging
- I have read the debugging page
Searched GitHub Issues
- I have searched GitHub for the issue.
Describe the Scenario
I don't consider this a BookStack bug but since BookStack has code blocks to make it easy to copy/paste code, I believe this "enhancement" is worth considering if it can be implemented.
ISSUE:
When coping multiple lines from a BookStack code block and pasting them into nano, in a terminal window, the new line characters are lost or replaced and some lines are out of order, as depicted in the image below:
It should look like the image below (copy/paste from EditPad Pro):
Work-around:
Copy code from the BookStack code-block, paste the code into a wordpad app such as EditPad Pro and then copy the text from the wordpad app and paste that into nano.
I get the same results with PuTTY, KiTTY, MobaXterm, etc. I'm working on a Windows PC. Not sure if that matters.
Additional info:
vercel/hyper#1448 (comment)
http://savannah.gnu.org/bugs/?49176#comment5
Exact BookStack Version
23.05.2
Log Content
N/A
PHP Version
8.x
Hosting Environment
AlmaLinux 8.8, Docker

