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

[Bug]: Questions in multiline flashcard extend beyond the empty line above it #1136

Closed
Struting-Kitty opened this issue Oct 17, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@Struting-Kitty
Copy link

Describe the bug

Typically, the question in a multiline flashcard would start below an empty line and continues until it reaches the separator for multiline flashcards.
After upgrading to version 1.13.1, the questions in multiline flashcard would not start from the empty line, but rather, the end of previous question.

To Reproduce

  1. Have multiple multiline flashcard in the same note
  2. Tag the note with a flashcard tag
  3. Review flashcard

Expected behavior

The question should start from the immediate empty line above it.

Screenshots

image
image
image
image

OS of your device

Win 11

Obsidian version

v1.6.7

Plugin version

v1.13.1

Installer version

v1.4.13

Additional context

No response

Config file

No response

@Struting-Kitty Struting-Kitty added the bug Something isn't working label Oct 17, 2024
@LeonelRFF
Copy link

I also found this problem, what could be done temporarily is to add those characters before starting the card and at the end. Regarding the latter, something similar was mentioned in #601, which could be a solution, however the documentation does not seem to indicate that this should be used to delimit the text that is before the question.

@alberttra
Copy link

i also have this issue, now everything above the question mark of the multiline card. I have roughly a few thousand cards, so applying the workaround above is impossible. Plz fix this issue. Thx

@Struting-Kitty
Copy link
Author

Struting-Kitty commented Oct 20, 2024

@alberttra
You don't have to manually apply the workaround mentioned by @LeonelRFF to every flashcard. You can use regular expression in a software like VS code to batch modify your notes.

Remember to backup your vault before trying in case anything goes wrong.

For the example I have above, try a find pattern of (^$\n)(.*\n^\?\?$) and a replace pattern of $1????\n$2.
To revert the changes once the issue is fixed, you can use this find pattern (^$\n)\?\?\?\?\n(.*\n^\?\?$) and this replace pattern $1$2.
You would have to update the pattern to match the separator you use. You can experiment on https://regex101.com first.

@st3v3nmw
Copy link
Owner

Hi all,
This issue has been fixed in #1142. I'll make a release soon.

@st3v3nmw
Copy link
Owner

Please try the new release (v1.13.2) and let me know.

@zoyart
Copy link

zoyart commented Oct 21, 2024

Hi, update v1.13.2 helped, thanks!

@alberttra
Copy link

It works, thank you very much 🚀

@Struting-Kitty
Copy link
Author

Can also confirm update v.1.13.2 solved this issue.
Thank you so much.

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

5 participants