r/BookStack • u/lovegirin • Jul 05 '25
Why does enter insert two lines?
I find this quite annoying. When I press enter I want to go to the next line, not two lines down with an invisible line in the middle. I've come across this before so I realize it's probably me who's missing something, so can I ask - what is this? Is it some editing system for writers? Some age old paradigm I'm not aware of?
Just as I'm writing this, I realize reddit's editor does the same!
(I know I can shift+enter to go to the next line, but something is still off if you change formatting and such)
6
Upvotes
4
u/CGS_Web_Designs Jul 05 '25
It’s pretty standard in any type of web/markdown editing. You could edit in the markdown editor and use <br> instead. One of the reasons you see this as a standard is the shift to mobile devices where a few sentences might span numerous lines. Spaces between paragraphs help a reader digest the content better on narrow screens by limiting reader dropout due to coming across a wall of text.
1
u/Live_Turnip_4236 Jul 05 '25
Do you mean space between paragraphs?
1
u/Yavuz_Selim Jul 05 '25
Soft return vs. hard return.
One breaks the line, the other the paragraph.
1
u/ssddanbrown Jul 06 '25
To add,
Enterstarts a new block/paragraph.Shift+Enterinserts a line break within the same block/paragraph. Any block-level format change will apply to the while block.It is defined via visual styles though. You could add some custom CSS to remove the visual spacing between adjacent paragraphs in page content if really desired.