Unexpected Newline Inserted at the Beginning of Wiki Pages When Path is Set Differently from Title
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
When creating a Wiki page with a custom path that differs from the title, an unexpected newline is inserted at the beginning of the page when editing.
Steps to reproduce
- Create a new Wiki page and set a custom path that is different from the title.
- Save the page.
- Edit the page again.
- Observe that an unintended newline has been inserted at the beginning of the content.
Example Project
https://gitlab.com/hdmr14/wiki-test/-/wikis/home
What is the current bug behavior?
An unexpected newline appears at the beginning of the content.
What is the expected correct behavior?
No extra newline should be inserted when editing a Wiki page.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Edited by 🤖 GitLab Bot 🤖
