Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix section editing bug #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snan
Copy link

@snan snan commented Feb 17, 2024

Editing sections often remove the last character of the previous
section. We can't have that.

The workaround has been to try to remember to always add an extra
newline manually at the start of each section we're editing but that
gets tedious and doesn't fix all issues.

Editing sections often remove the last character of the previous
section. We can't have that.

The workaround has been to try to remember to always add an extra
newline manually at the start of each section we're editing but that
gets tedious and doesn't fix all issues.
@snan
Copy link
Author

snan commented Feb 17, 2024

As a demonstration of the issues this commit addresses, make a page like this:

# test för section buggen

## fifi

## rhrh

## gugu

Foo bar

### eheh

### nini

and mess around with the edit section buttons, you don't even have to add any text, just edit a section and save it and then look at the full page source in between and do that a couple of times.

New lines before section starts gets eaten and

Foo bar

becomes

Foo ba
r

@snan snan mentioned this pull request Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant