Blank lines disappearing after saving #5067

Open
opened 2026-02-05 09:37:57 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @HerbertSchulz4711 on GitHub (Nov 29, 2024).

Describe the Bug

Blank lines disappear after saving a page. When re-editing and re-saving it the issue is gone. If you try to re-edit and re-saving it again the issue is there. Seems like back and forth.

Steps to Reproduce

  1. Create page with text or headlines (doesn't matter) and blank lines
  2. Saving it
  3. Re-editing it

Expected Behaviour

Expected behaviour should be for the blank lines to stay

Screenshots or Additional Context

No response

Browser Details

Microsoft Edge Business 131.0.2903.70

Exact BookStack Version

BookStack v24.05.3

Originally created by @HerbertSchulz4711 on GitHub (Nov 29, 2024). ### Describe the Bug Blank lines disappear after saving a page. When re-editing and re-saving it the issue is gone. If you try to re-edit and re-saving it again the issue is there. Seems like back and forth. ### Steps to Reproduce 1. Create page with text or headlines (doesn't matter) and blank lines 2. Saving it 3. Re-editing it ### Expected Behaviour Expected behaviour should be for the blank lines to stay ### Screenshots or Additional Context _No response_ ### Browser Details Microsoft Edge Business 131.0.2903.70 ### Exact BookStack Version BookStack v24.05.3
OVERLORD added the 🐛 Bug📝 WYSIWYG Editor labels 2026-02-05 09:37:57 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 29, 2024):

Hi @HerbertSchulz4711,
Please can you take a screenshot of the blank lines you're adding in the editor, which you're expecting to remain?
Just to confirm which editor you're using, and the exact location/layout of such blank lines.

@ssddanbrown commented on GitHub (Nov 29, 2024): Hi @HerbertSchulz4711, Please can you take a screenshot of the blank lines you're adding in the editor, which you're expecting to remain? Just to confirm which editor you're using, and the exact location/layout of such blank lines.
Author
Owner

@virtadpt commented on GitHub (Nov 29, 2024):

I've noticed the same thing, and I thought it was a feature, not a bug.

@virtadpt commented on GitHub (Nov 29, 2024): I've noticed the same thing, and I thought it was a feature, not a bug.
Author
Owner

@Gabrielsc commented on GitHub (Dec 2, 2024):

I don't know if it's the same problem as my friend, but I have something similar.

When using "Task list", you can see that I have the following page originally created:
image1

I edit this page and create a blank space as below and save it:
image2

When saving, you can see that the note is like this:
image3

When editing again, you can see that the space doesn't exist, but it's kind of hidden.
image4

When I save it again, and view the page, it looks like this:
image5

@Gabrielsc commented on GitHub (Dec 2, 2024): I don't know if it's the same problem as my friend, but I have something similar. When using "Task list", you can see that I have the following page originally created: ![image1](https://github.com/user-attachments/assets/88f1252c-1357-4882-9d02-21a1a1ddae29) I edit this page and create a blank space as below and save it: ![image2](https://github.com/user-attachments/assets/8bc51d8e-aac6-4589-b3f1-f4d0bb1e6555) When saving, you can see that the note is like this: ![image3](https://github.com/user-attachments/assets/3e229d87-1de9-413a-9bc2-60992da15af5) When editing again, you can see that the space doesn't exist, but it's kind of hidden. ![image4](https://github.com/user-attachments/assets/ee2b2c6d-9bbb-499b-8afb-01906e76ba97) When I save it again, and view the page, it looks like this: ![image5](https://github.com/user-attachments/assets/6adede7d-1f7f-43da-821f-a19e434bf3f8)
Author
Owner

@HerbertSchulz4711 commented on GitHub (Dec 2, 2024):

I don't know if it's the same problem as my friend, but I have something similar.

When using "Task list", you can see that I have the following page originally created: image1

I edit this page and create a blank space as below and save it: image2

When saving, you can see that the note is like this: image3

When editing again, you can see that the space doesn't exist, but it's kind of hidden. image4

When I save it again, and view the page, it looks like this: image5

This is not the issue

@HerbertSchulz4711 commented on GitHub (Dec 2, 2024): > I don't know if it's the same problem as my friend, but I have something similar. > > When using "Task list", you can see that I have the following page originally created: ![image1](https://private-user-images.githubusercontent.com/8128226/391367873-88f1252c-1357-4882-9d02-21a1a1ddae29.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzMxMjE1NzMsIm5iZiI6MTczMzEyMTI3MywicGF0aCI6Ii84MTI4MjI2LzM5MTM2Nzg3My04OGYxMjUyYy0xMzU3LTQ4ODItOWQwMi0yMWExYTFkZGFlMjkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MTIwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDEyMDJUMDYzNDMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjkzNzUzMmNiODQ0YjI5N2VmZDBiZThjYjFiZTQyMzg4MTBlN2Y5ZTAxNzYxYjY0Y2JlNGUyMzc0YjE5NmM2OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.23Byspqqt9ag5EH8qqEA1l5UP1DiPG3qyGt9AI2dR-8) > > I edit this page and create a blank space as below and save it: ![image2](https://private-user-images.githubusercontent.com/8128226/391367884-8bc51d8e-aac6-4589-b3f1-f4d0bb1e6555.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzMxMjE1NzMsIm5iZiI6MTczMzEyMTI3MywicGF0aCI6Ii84MTI4MjI2LzM5MTM2Nzg4NC04YmM1MWQ4ZS1hYWM2LTQ1ODktYjNmMS1mNGQwYmIxZTY1NTUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MTIwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDEyMDJUMDYzNDMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDQxOTc0NjkyMDIyYWRhZTQ1N2VmYjE0MzlhOGRhYTZiYzZmMWQ0NGIxMzA1ODdhYTA3MWM5NGQ4NTg0NTkyMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.8n-85r8nj-Zgyox7Eol5dpvz6bGDfkDmYS1ZqFOvQQY) > > When saving, you can see that the note is like this: ![image3](https://private-user-images.githubusercontent.com/8128226/391367890-3e229d87-1de9-413a-9bc2-60992da15af5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzMxMjE1NzMsIm5iZiI6MTczMzEyMTI3MywicGF0aCI6Ii84MTI4MjI2LzM5MTM2Nzg5MC0zZTIyOWQ4Ny0xZGU5LTQxM2EtOWJjMi02MDk5MmRhMTVhZjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MTIwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDEyMDJUMDYzNDMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTIwN2VkMzMxN2ViMTBiZGY4ODNjODgzYWZlYTIzYTEyODcwODdmMWQ3ZTU5NjY1NDUwMTRiZjFhNGZjN2JiMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.EjvKqi1TPwLHA0hSMQV-Jmyph3KwrxXxHPFU3et-qJw) > > When editing again, you can see that the space doesn't exist, but it's kind of hidden. ![image4](https://private-user-images.githubusercontent.com/8128226/391367987-ee2b2c6d-9bbb-499b-8afb-01906e76ba97.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzMxMjE1NzMsIm5iZiI6MTczMzEyMTI3MywicGF0aCI6Ii84MTI4MjI2LzM5MTM2Nzk4Ny1lZTJiMmM2ZC05YmJiLTQ5OWItOGFmYi0wMTkwNmU3NmJhOTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MTIwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDEyMDJUMDYzNDMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWQ0ZDE0YjQyNDRiM2JkOTE0NmNhNDQyMzRlZjQwYmMxMjg0NzBlM2I1OTYzODcxYWY5NzBkZDAyMGY2ZjM0MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.OVBgSl57NOLCfkaE-GCL0phQpefNtYQRS0ILME2jPSI) > > When I save it again, and view the page, it looks like this: ![image5](https://private-user-images.githubusercontent.com/8128226/391368049-6adede7d-1f7f-43da-821f-a19e434bf3f8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzMxMjE1NzMsIm5iZiI6MTczMzEyMTI3MywicGF0aCI6Ii84MTI4MjI2LzM5MTM2ODA0OS02YWRlZGU3ZC0xZjdmLTQzZGEtODIxZi1hMTllNDM0YmYzZjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MTIwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDEyMDJUMDYzNDMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2YxZmQ5YmQ2MWVkOTFmOGNjMTQ4NGEyMTVlN2UwMTc4NDMwOGQyYmYwODgxZTRhZWQyN2VmMTI4ZDFiZjdmMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Tub0zQ8fv2OUbmzA7HpcBigNg23C8qe5VA4vvc6KOH4) This is not the issue
Author
Owner

@HerbertSchulz4711 commented on GitHub (Dec 2, 2024):

Hi @HerbertSchulz4711, Please can you take a screenshot of the blank lines you're adding in the editor, which you're expecting to remain? Just to confirm which editor you're using, and the exact location/layout of such blank lines.

I've taken three screenshots and while taking these I think the issue only appears if there are images involved (not confirmed but guessing) as I could not reproduce the issue without images. I only tested this with headlines, not with plain text.

  1. Screenshot shows creating the new page
    1_creatingnewpage

  2. Screenshot is after saving and viewing the page. Empty line missing.
    2_savingandviewingnewpage

  3. Screenshot is re-editing. Empty line still missing
    3_re-editingnewpage

@HerbertSchulz4711 commented on GitHub (Dec 2, 2024): > Hi @HerbertSchulz4711, Please can you take a screenshot of the blank lines you're adding in the editor, which you're expecting to remain? Just to confirm which editor you're using, and the exact location/layout of such blank lines. I've taken three screenshots and while taking these I think the issue only appears if there are images involved (not confirmed but guessing) as I could not reproduce the issue without images. I only tested this with headlines, not with plain text. 1. Screenshot shows creating the new page ![1_creatingnewpage](https://github.com/user-attachments/assets/add07a5d-3984-4fdf-b701-65b03034f4b2) 2. Screenshot is after saving and viewing the page. Empty line missing. ![2_savingandviewingnewpage](https://github.com/user-attachments/assets/3d122a7c-9225-460d-995b-c20f13c54fed) 3. Screenshot is re-editing. Empty line still missing ![3_re-editingnewpage](https://github.com/user-attachments/assets/2d4946ac-350b-49a3-b9a9-23a416092ef7)
Author
Owner

@HerbertSchulz4711 commented on GitHub (Dec 2, 2024):

I've noticed the same thing, and I thought it was a feature, not a bug.

It can get confusing and illegible if empty lines do not work

@HerbertSchulz4711 commented on GitHub (Dec 2, 2024): > I've noticed the same thing, and I thought it was a feature, not a bug. It can get confusing and illegible if empty lines do not work
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5067