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

Overwrite others sections in case there is an empty section title #30

Open
byzheng opened this issue Jun 22, 2022 · 3 comments
Open

Overwrite others sections in case there is an empty section title #30

byzheng opened this issue Jun 22, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@byzheng
Copy link

byzheng commented Jun 22, 2022

it might be a really wired situation.

Step to reproduce this bug

  1. Go to website: https://kookma.github.io/TW-Section/ and create a new tiddler
  2. modify tiddler title to Section editor test add a new field se-type, and save this tiddler.
  3. Edit this tiddler and add content
!! Section 1

S1

!! 

There is a space in the empty section title.

image

  1. Save this tiddler

image

  1. Edit the second empty section add content
!! Section 2
S2

image

  1. Save the section and the content changes into
!! Section 2

S2Section 1

S1

!! Section 2

S2

image

The content in Section 1 is messed up.

I can confirm it is only happening when editing a section with empty title (i.e. !! )

@kookma
Copy link
Owner

kookma commented Jun 23, 2022

Yes, this is a limitation in the current implementation!
Have you tried the above example with simple change:
When enter the body of tiddler for the second heading use two spaces e.g !!<space><space>
so your body looks like this

!! Section 1

S1

!!  

Note to the two spaces in front second !!

@kookma kookma added the bug Something isn't working label Jun 23, 2022
@byzheng
Copy link
Author

byzheng commented Jun 23, 2022

I don't think it is a big problem for me. It is very easy to avoid through writing the full section title before save it.

I just thought it will be useful to report here.

@kookma
Copy link
Owner

kookma commented Jun 23, 2022

There was some discussions on the forum on this. The recommendation is to use distinct header.
You may note if you create two exactly similar sections they overwrite each other. This is a limitation and I hope I can address this in future revisions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants