CKEditor displays the code (Insert code block) in one line
There is a «Code blocks» demo example in the documentation: https://ckeditor.com/docs/ckeditor5/latest/features/code-blocks.html
This is what the code looks like when pasted into html:
There is a «Code blocks» demo example in the documentation: https://ckeditor.com/docs/ckeditor5/latest/features/code-blocks.html
This is what the code looks like when pasted into html: