diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-01-20 23:08:43 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-01-20 23:08:43 +0100 |
commit | 590ccd3107116ca70781d29b5f8390da88566635 (patch) | |
tree | 629e34376d218e8bda41d27d94c2e4917b1f2ebe | |
parent | d55da1c130a1bc6087f28644608f5837847b7b75 (diff) |
fix hang1.3.1
-rw-r--r-- | anki-card-template/card.html | 2 | ||||
-rw-r--r-- | anki-card-template/card.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/anki-card-template/card.html b/anki-card-template/card.html index 4c509e7..2c7909b 100644 --- a/anki-card-template/card.html +++ b/anki-card-template/card.html @@ -26,7 +26,7 @@ </div> <hr id="separator"> <div id="back"> - <span id="target-word-reading" class="parse parse-format parse-brackets foreign">予期しない【よ・き・しない】(uk)</span> +<span id="target-word-reading" class="parse parse-format parse-brackets foreign">予期しない【よ・き・しない】</span> <span id="target-word-translation" class="parse parse-format native">Unexpected</span> <span id="sentence-translation" class="parse parse-format native spoiler hidden">"Dictionary" has quit unexpectedly</span> <span id="tags" class="parse parse-tags">tag1 tag2 tag example-long-tag-here</span> diff --git a/anki-card-template/card.js b/anki-card-template/card.js index 18c8cb9..d3efe29 100644 --- a/anki-card-template/card.js +++ b/anki-card-template/card.js @@ -67,7 +67,7 @@ HTMLElement.prototype.parse = function() { } } // ignore note if parsed - if (i == note_head) { i += note_tail - 1; continue; } + else if (i == note_head) { i = note_tail - 1; continue; } // reading open bracket if (input[i] == '\u3010') { out += `</span><span class="reading"><span class="bracket">${input[i]}</span><span class="syllable">`; continue; } // reading closing bracket |