Describe the Bug
When I have multiple lines and I select them and click on 'code block', all the paragraphs on the page get smushed to one line.
Strangely, if I select the same paragraphs and select block quote, it works perfectly.
Unrelated, but requires same bug fix: If I shift+enter some lines and then select code block, the entire paragraph gets smushed to a single line inside the code block. Again, block quote works as expected.
Steps to Reproduce
New document
add a few lines of text, some with SHIFT+ENTER
select 2 lines from either the enter delimited and shift+enter delimited text and click code block.
Expected Behaviour
It has to be like the block quote, retain line endings, so if you have 2 lines with an ENTER between them (2 paragraphs), the code block needs to be "line1, empty line, line2" , and if you have a paragraph with multiple lines, it needs to be "line1,line2".
Screenshots or Additional Context
No response
Exact BookStack Version
v21.12.2
PHP Version
7.4
Hosting Environment
Ubuntu 20.4 LTS
Describe the Bug
When I have multiple lines and I select them and click on 'code block', all the paragraphs on the page get smushed to one line.
Strangely, if I select the same paragraphs and select block quote, it works perfectly.
Unrelated, but requires same bug fix: If I shift+enter some lines and then select code block, the entire paragraph gets smushed to a single line inside the code block. Again, block quote works as expected.
Steps to Reproduce
New document
add a few lines of text, some with SHIFT+ENTER
select 2 lines from either the enter delimited and shift+enter delimited text and click code block.
Expected Behaviour
It has to be like the block quote, retain line endings, so if you have 2 lines with an ENTER between them (2 paragraphs), the code block needs to be "line1, empty line, line2" , and if you have a paragraph with multiple lines, it needs to be "line1,line2".
Screenshots or Additional Context
No response
Exact BookStack Version
v21.12.2
PHP Version
7.4
Hosting Environment
Ubuntu 20.4 LTS