st3v3nmw / obsidian-spaced-repetition

Fight the forgetting curve by reviewing flashcards & entire notes on Obsidian.md
https://www.stephenmwangi.com/obsidian-spaced-repetition/
MIT License
1.47k stars 184 forks source link

[Bug]: Can not have multiple decks with multiline notes #1076

Open Hugo-Persson opened 3 days ago

Hugo-Persson commented 3 days ago

Describe the bug

I expected my multiline notes to be organized in multiple decks with tags

To Reproduce

Create flashcard like this:

#flashcards/cpen-355 #flashcards/linear-algebra
Test
?
123

This works:

#flashcards/cpen-355 #flashcards/linear-algebra
Test::123

Expected behavior

To get:

image

Screenshots

image

OS of your device

MacOS 14.6.1

Obsidian version

Version 1.6.7

Plugin version

1.12.6

Installer version

5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/1.4.16 Chrome/114.0.5735.289 Electron/25.8.1 Safari/537.36

Additional context

No response

Config file

No changes from default

ronzulu commented 1 day ago

Hi @Hugo-Persson I can reproduce as follows:

Test 1

When I have:

#flashcards/test/1076/cpen-355 #flashcards/test/1076/linear-algebra
Test
?
123

The card only appears in a single deck image

Test 2

And with:

#flashcards/test/1076/cpen-355 #flashcards/test/1076/linear-algebra

Test
?
123

The card appears in both decks: image

Workaround

Place a blank line after the line with the tags, before the actual question.

Please let me know if this works for you.

Cheers Ronny

Hugo-Persson commented 1 day ago

Yes that worked for me! Thank you!

ronzulu commented 21 hours ago

Thanks @Hugo-Persson I'll reopen the issue because what you wrote for the "expected behaviour" is correct.

There shouldn't be a need to have the blank line after the line with the tags on it.