Bug Report: cloze-deleting last table cell absorbs content

initial setup:

<table>
<tr><td>question 1</td><td>answer 1</td></tr>
<tr><td>question 2</td><td>answer 2</td></tr>
<tr><td>question 3</td><td>answer 3</td></tr>
</table>
<table>
<tr><td>question 4</td><td>answer 7</td></tr>
<tr><td>question 5</td><td>answer 8</td></tr>
<tr><td>question 6</td><td>answer 9</td></tr>
</table>
question 1 answer 1
question 2 answer 2
question 3 answer 3

question 4 answer 4
question 5 answer 5
question 6 answer 6

reproduce:

mouseover answer 1, click click click ctrl-shift-c, {{c1::answer 1}}
mouseover answer 2, click click click ctrl-shift-c, {{c2::answer 2}}
mouseover answer 3, click click click ctrl-shift-c, {{c3::answer 3}} and second table is absorbed into the a3 cell
ctrl-z may or may not undo properly

expected output:

<table>
<tr><td>question 1</td><td>{{c1::answer 1}}</td></tr>
<tr><td>question 2</td><td>{{c2::answer 2}}</td></tr>
<tr><td>question 3</td><td>{{c3::answer 3}}</td></tr>
</table>
<table>
<tr><td>question 4</td><td>answer 7</td></tr>
<tr><td>question 5</td><td>answer 8</td></tr>
<tr><td>question 6</td><td>answer 9</td></tr>
</table>
question 1 {{c1::answer 1}}
question 2 {{c2::answer 2}}
question 3 {{c3::answer 3}}

question 4 answer 4
question 5 answer 5
question 6 answer 6

actual output:

<table>
<tbody><tr><td>question 1</td><td>{{c1::answer 1
}}</td></tr><tr><td>question 2</td><td>{{c2::answer 2
}}</td></tr><tr><td>question 3</td><td>{{c3::<table><tbody><tr><td>answer 3</td></tr>
</tbody></table>}}&nbsp;<table><tbody><tr><td>question 4</td><td>answer 7</td></tr><tr><td>question 5</td><td>answer 8</td></tr><tr><td>question 6</td><td>answer 9</td></tr></tbody></table></td></tr></tbody></table>
question 1 {{c1::answer 1 }}
question 2 {{c2::answer 2 }}
           {{c3::
            answer 3
           }}
question 3
           question 4 answer 4
           question 5 answer 5
           question 6 answer 6

additional info:

happens with Cloze and Cloze (Hide All) note types, with and without mods
debug info:

    
    Anki 2.1.58 (ab8b1465) Python 3.9.15 Qt 6.4.2 PyQt 6.4.0
    Platform: Windows-10-10.0.19045
    Flags: frz=True ao=False sv=3
    Add-ons, last update check: 2023-05-04 07:05:31
    
    
    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    '' ['DecksAddBrowseStatsSync', 0, 'None', '']
    '' ['cloze_overlapper', 0, 'None', '']
    '' ['enableplover', 0, 'None', '']
    '' ['numbers2stripes โ–ˆโ–“โ–’โ–‘', 0, 'None', '']
    '' ['tagtovlc', 0, 'None', mod]
    3 add-ons merged quicker anki explain deletion explain database check ['777545149', 2019-09-26T06:03, 'None', '']
    Add Card Do First Review ['1394953283', 2020-11-11T06:40, 'None', '']
    Add Parent Tag To Every Tag In A Deck ['543106186', 2019-11-20T18:30, 'None', '']
    Advanced Answer Sounds ['1167194350', 2022-05-29T00:30, 'None', '']
    Advanced Copy Fields ['1898445115', 2019-05-03T11:46, 'None', '']
    Almost Mandatory Tags ['1386232247', 2022-12-28T09:51, 'None', '']
    Anki JavaScript API ['1490471827', 2021-02-19T12:54, 'None', '']
    Anki Killstreaks ['579111794', 2021-12-15T07:20, 'None', '']
    Anki Preview Reloader ['571150035', 2023-04-22T12:29, '1.0.0', '']
    Anki X Markdown X MindMap ['728482867', 2022-07-08T21:07, 'None', '']
    AnkiConnect ['2055492159', 2023-04-11T10:20, 'None', mod]
    AnkiWebView Inspector ['31746032', 2022-04-08T12:44, 'None', '']
    Answer Visual Confirmation ['1208806023', 2008-04-21T12:27, 'None', '']
    Auto Ease Factor ['1672712021', 2021-03-21T11:11, 'None', mod]
    AwesomeTTS - Add speech to your flashcards ['1436550454', 2023-04-09T19:00, 'None', '']
    Batch Editing ['291119185', 2019-06-04T16:10, 'None', '']
    CC-CEDICT for Anki Chinese dictionary ['418828045', 2022-03-23T05:22, 'None', mod]
    CN Bulk Generate Chinese Hanzi Homophone List to field ['1709020234', 2017-09-18T00:41, 'None', '']
    Chinese Companion - frequency sort HSK suspend heisig support and more ['2129668097', 2019-05-20T01:02, 'None', '']
    Chinese Pinyin Translator Zhuyin Bopomofo Gwoyeu Romatzyh ['1792056402', 2018-11-08T19:27, 'None', mod]
    Chinese Prestudy ['882364911', 2020-11-02T22:43, 'None', '']
    Chinese Stats ['1959794557', 2022-01-29T23:06, 'None', mod]
    Chinese Support Redux v0142 ['1128979221', 2021-03-28T19:19, 'None', mod]
    Chinese Vocabulary Generator ['1370756741', 2021-02-24T00:07, 'None', '']
    Chinese Words Finder ['2048169015', 2020-07-07T05:32, 'None', '']
    Chinese-Text-Scanner ['2121493325', 2020-06-27T21:53, 'None', mod]
    Cloze Anything ['330680661', 2021-12-08T23:34, 'None', '']
    Cloze Hide All ['1709973686', 2021-09-11T03:00, '21.9.11i107', mod]
    Cloze Overlapper for Anki 21 ['109531687', 2021-01-11T19:12, 'None', '']
    Color Confirmation ['1084228676', 2020-03-14T05:13, 'None', mod]
    Congrats Confetti ['206062158', 2023-01-16T20:02, 'None', '']
    Contanki - Controller Support for Anki beta ['1898790263', 2023-02-01T17:04, 'v0.9.2-beta', mod]
    Convert Subdecks to Tag Hierarchy ['1172858842', 2023-02-07T10:15, 'None', '']
    Countdown To Events and Exams ['1143540799', 2022-06-27T04:50, 'None', '']
    Create subs2srs cards with mpv  interactive subs ['832294226', 2023-03-08T03:45, 'None', '']
    CrowdAnki JSON exportimport Edit history Collaborate on deck creation ['1788670778', 2023-02-03T16:58, 'None', '']
    Deck Browser CSS ['153779542', 2022-10-18T08:53, 'None', '']
    DeepL Translator ['972129549', 2022-07-30T15:16, '1.0.0', mod]
    Delay siblings ['1369579727', 2022-06-03T16:05, 'None', mod]
    DrawingPad ['370778248', 2019-08-21T21:36, 'None', '']
    Editor Live Preview ['1960039667', 2023-03-24T09:35, 'None', mod]
    FSRS4Anki Helper ['759844606', 2023-04-29T06:51, 'None', mod]
    Fill the blanks - Multiple typecloze support ['1933645497', 2023-01-14T06:41, 'None', '']
    Find and Replace in Card templatesNotetypesHTML ['992153575', 2021-09-16T23:34, 'None', '']
    Flexible Cloze ['1632356464', 2023-01-21T08:04, 'None', '']
    HTML Window source ['1214415810', 2020-02-18T05:20, 'None', '']
    Image Occlusion Enhanced ['1374772155', 2022-04-09T00:15, 'None', '']
    Incremental Reading v4116 unofficial clone ['999215520', 2023-03-18T22:18, 'None', '']
    Leaderboard ['41708974', 2023-01-15T02:53, 'None', mod]
    Learn now  Grade now ['1021636467', 2022-12-13T05:13, 'None', '']
    Life Drain ['715575551', 2022-09-18T03:42, 'None', mod]
    Markdown and KaTeX Support ['1087328706', 2022-02-10T08:44, 'None', '']
    Migaku Chinese ['498302176', 2021-04-12T15:29, 'None', mod]
    Migaku Retirement ['1666520655', 2021-01-13T16:37, 'None', mod]
    Mindmap from tag hierarchy ['965278890', 2022-11-16T02:55, 'None', '']
    MorphMan for Anki 21 ['900801631', 2023-01-10T12:01, 'None', '']
    Motivanki ['663438166', 2022-06-23T08:38, 'None', '']
    Neo Anki Leaderboard ['1894428367', 2023-03-09T12:27, 'None', mod]
    No Distractions Full Screen Clean review interface WORKING ['1799768115', 2022-11-20T11:04, 'v4.1.8', mod]
    Play a celebrationcompletion sound when you finish your deck ['978869609', 2022-11-29T20:20, 'None', mod]
    Pokemanki ['633922407', 2021-02-24T10:49, 'None', '']
    Pop-up Wikipedia Beta ['395343016', 2020-01-08T19:58, 'None', '']
    Progress Bar cards done cards left secondscard time spentleft and ETA ['1097423555', 2022-08-05T04:01, 'None', mod]
    Puppy Reinforcement ['1722658993', 2020-03-02T12:23, 'None', '']
    Quick note and deck buttons Fork for 21 ['1331140127', 2022-05-23T06:13, 'None', '']
    Quizlet to Anki 21 Importer with audio support ['1362209126', 2023-04-05T19:35, 'None', '']
    Remaining time for Anki 21 ['1508357010', 2020-12-13T06:14, '20.12.13i151', '']
    Review Heatmap ['1771074083', 2022-06-29T18:43, 'None', '']
    Review Hotmouse ['1928346827', 2022-05-16T21:25, '2.6', mod]
    Search and Replace Tags ['138501288', 2018-02-08T16:03, 'None', '']
    Update lookup Tags ['1715601279', 2018-11-19T10:25, 'None', '']
    ZIM Reader ['951350249', 2023-02-21T13:12, 'None', mod]
    extended editor for field for tables searchreplace ['805891399', 2022-03-13T03:51, 'None', '']
    right hand reviews  hjkl answer shortcuts  Handy Answer Keys configurable ['850294128', 2021-12-06T07:00, 'None', mod]
    
    ===IDs of active AnkiWeb add-ons===
    1021636467 1084228676 1087328706 109531687 1097423555 1128979221 1143540799 1167194350 1172858842 1208806023 1214415810 1331140127 1362209126 1369579727 1370756741 1374772155 138501288 1386232247 1394953283 1436550454 1490471827 1508357010 153779542 1632356464 1666520655 1672712021 1709020234 1709973686 1715601279 1722658993 1771074083 1788670778 1792056402 1799768115 1894428367 1898445115 1898790263 1928346827 1933645497 1959794557 1960039667 2048169015 2055492159 206062158 2121493325 2129668097 291119185 31746032 330680661 370778248 395343016 41708974 418828045 498302176 543106186 571150035 579111794 633922407 663438166 715575551 728482867 759844606 777545149 805891399 832294226 850294128 882364911 900801631 951350249 965278890 972129549 978869609 992153575 999215520
    
    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    '' ['TitleAgo', 0, 'None', '']
    '' ['countnotifier', 0, 'None', '']
    '' ['speech-to-text', 0, 'None', '']
    ActivityWatch for Anki ['567877061', 2022-10-21T15:24, 'None', '']
    Advanced Review Bottom Bar ['1136455830', 2023-03-28T15:52, 'None', '']
    Anki Simulator ['817108664', 2021-08-07T12:24, 'None', '']
    Anki Time anti-distraction helper ['998250600', 2023-01-09T05:44, 'None', '']
    Anki Zoom ['538879081', 2020-04-03T17:20, 'v1.1.3', '']
    Anki with Friends ['613520216', 2022-02-05T08:40, 'None', mod]
    Anki-redesign ['308574457', 2023-02-04T10:43, 'None', mod]
    AnkiCollab - The free collaboration Platform ['1957538407', 2023-04-30T12:34, 'None', '']
    AnkiFlash Flashcards Importer Vietnamese English Japanese Chinese French ['1129289384', 2021-11-27T11:52, 'None', '']
    AnkiHub ['1322529746', 2023-04-28T07:14, 'None', '']
    AnkiPet - gamify your learning by caring for a pet ['1296038972', 2021-05-18T00:18, 'None', '']
    Ankicord - Discord Rich Presence ['1828536813', 2022-05-03T02:50, 'None', '']
    Ankimote - remote to control Anki from your phone ['149004221', 2021-08-11T09:57, 'None', '']
    Asset Manager ['656021484', 2021-08-29T14:07, 'None', '']
    AutoDefine - Automatically define vocabulary words with pronunciations and image ['2136497008', 2020-11-15T15:16, 'None', mod]
    Browser TableEditor side-by-side horizontal split ['831846358', 2022-01-25T14:11, 'None', '']
    Colorful Tags  Hierarchical Tags ['594329229', 2022-09-15T08:06, 'None', '']
    Content Injector ['166455199', 2020-09-03T09:08, 'None', mod]
    Cookie monster ['1501583548', 2018-04-13T02:38, 'None', '']
    Correcting a bug in anki which makes new card appearing in wrong order ['127334978', 2019-12-09T01:38, 'None', '']
    Custom Background Image and Gear Icon ['1210908941', 2023-04-18T18:19, 'None', mod]
    Deck Counts NowLater ['1836212767', 2020-09-09T08:33, 'None', '']
    Enhance main window ['877182321', 2023-01-15T23:50, 'None', mod]
    Enhanced Cloze for Anki 21 ['1990296174', 2023-04-25T16:05, 'None', '']
    Extended Card Stats During Review ['1008566916', 2017-08-29T11:59, 'None', '']
    Fast Word Query Multi-threaded queries for words from local or web dictionaries ['1807206748', 2019-06-22T20:10, 'None', '']
    Fast cards reposition ['544982740', 2021-09-19T06:51, 'None', '']
    Fix invalid card IDs ['196231552', 2021-11-25T17:33, 'None', '']
    Grid Fields ['796923308', 2021-04-09T12:09, 'None', '']
    Hitmarkers ['1776869150', 2020-03-31T15:04, 'None', '']
    Large and Colorful Buttons ['1829090218', 2018-10-02T10:41, 'None', '']
    LilyPond sheet music typesetting integration ['1080109152', 2021-09-28T15:16, 'None', mod]
    Memory Status Bar and Stats ['1582352817', 2023-02-28T09:04, 'None', '']
    Migaku Anki Add-on ['1846879528', 2023-01-29T12:48, 'None', mod]
    More Decks Stats and Time Left ['1556734708', 2022-10-09T05:05, 'None', '']
    More Overview Stats ['2116130837', 2022-09-16T10:56, 'None', '']
    Multiple Choice for Anki ['1566095810', 2022-12-16T12:04, 'None', '']
    Photo-episodic 20 ['1989739687', 2020-08-26T17:15, 'None', '']
    ReColor ['688199788', 2023-04-24T05:23, '2.5', mod]
    RuneScape-Gamification ['931346754', 2022-12-27T13:06, 'None', '']
    Searching PDF Reading  Note-Taking in Add Dialog ['1781298089', 2022-08-15T00:22, 'None', mod]
    Semantic HTML tags in editor ['844409145', 2019-03-20T15:26, 'None', mod]
    Show answer with number keys ['188886658', 2021-03-08T09:35, 'None', '']
    Speed Focus Mode auto-alert auto-reveal auto-answer ['1046608507', 2022-12-16T03:24, 'None', '']
    Stats Overview Pie Graph with Distinct Learning and-or Relearning Sections ['1828603731', 2019-03-27T13:38, 'None', '']
    Stats Plus ['1009670238', 2021-03-04T04:23, 'None', '']
    Study Time Stats ['1247171202', 2022-11-30T10:25, 'None', '']
    Test Your Pronunciation Cloud Speech to Text ['673333980', 2021-04-16T07:34, 'None', '']
    Web Browser - Search terms Import texts and images automatically ['864545277', 2022-08-02T13:49, 'None', mod]
    YT Subs2SRS ['1633834851', 2020-03-19T05:43, 'None', '']
    Yomisama JapaneseChinese ['907186589', 2020-07-24T10:18, 'None', '']
    Youtubes Video to SRS Deck ['1023383878', 2021-12-05T05:59, 'None', '']
    maobi - Chinese Hanzi Writing Quizzes in Anki v0 5 2 ['931477147', 2021-02-21T09:14, 'None', mod]
    numbers2polyhedrastripes ['2088639269', 2023-04-14T18:24, 'None', '']

related:
1 click moves the text cursor
2 clicks selects the word
3 clicks selects the line
4 clicks does not select the cell
To select the cell, triple click on the first line, then use shift-down to increase the selection downward to contain all the cellโ€™s lines, then shift-left to reduce the selection back to the cell.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.