# Help with cloze formatting and bullet points

**URL:** <https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965>\
**Category:** Help\
**Created:** [October 20, 2023, 3:21am UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965 "2023-10-20T03:21:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpearce](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@bpearce](https://forums.ankiweb.net/u/bpearce)\
**Post date:** [October 20, 2023, 3:21am UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/1 "2023-10-20T03:21:37Z")

</div>

Hello there, I’m looking for help with a problem that I am encountering with card formatting.

The issue arises when I want to put two or more bullet points embedded within a cloze. What ends up happening is that only the top bullet point appears correctly formatted like a normal answer would, the other bullet points appear similar to other non-answer text.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/e/c/ecd28a090a86a6f0cf764537ec17b9fe791b3075.png)

appearing like

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/f/d/fd144c0113d21a59d7f184da7c810aeb8d3766c1.png)

I know that I can just have a cloze attached to each bullet point individually, but I’d rather not have the “hint” that the answer requires two bullet points, if that makes any sense. Any help is sincerely appreciated!

---

<div class="post-metadata">

**Author:** ![bpearce](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@bpearce](https://forums.ankiweb.net/u/bpearce)\
**Post date:** [October 20, 2023, 3:23am UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/2 "2023-10-20T03:23:23Z")

</div>

For reference, here is the formatting of the card

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/4/1/41db259314ac05afd33761aaa6897f4a53858719.png)

---

<div class="post-metadata">

**Author:** ![hnvy](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hnvy](https://forums.ankiweb.net/u/hnvy)\
**Post date:** [October 20, 2023, 7:40pm UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/3 "2023-10-20T19:40:47Z")

</div>

Hi,

Try this formatting (it reminds me of C++…)? Not particularly pretty, but it seems to do what you want. Note: there seems to be a strange behaviour associated with how cloze works; I will report that now.

HR

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/d/3d20836b1163e25ad2660c2d555a95e5f0d054b8.png)

Here is the bug: [Cloze resets indentation of bullet points to level one](https://forums.ankiweb.net/t/cloze-resets-indentation-of-bullet-points-to-level-one/35998)

---

<div class="post-metadata">

**Author:** ![bpearce](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@bpearce](https://forums.ankiweb.net/u/bpearce)\
**Post date:** [October 20, 2023, 8:00pm UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/4 "2023-10-20T20:00:22Z")

</div>

You are exactly right. That does what I want in terms of the formatting of the answer, but it doesn’t look good.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/c/a/ca1d43191c28f481e0acb496b49feaf9ffe4b937.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/e/7/e70afd70ff8d995ed229d5acaa60e52af3315ba6.png)

I’ll try to keep playing around with it

---

<div class="post-metadata">

**Author:** ![hnvy](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hnvy](https://forums.ankiweb.net/u/hnvy)\
**Post date:** [October 20, 2023, 8:05pm UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/5 "2023-10-20T20:05:12Z")

</div>

Try this format (press Shift+Enter to insert a `<br>` instead of `<p>`)

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/6/c/6c1bbb573988351d5e57e665ac2f2bfcb2977bdb.png)

---

<div class="post-metadata">

**Author:** ![bpearce](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@bpearce](https://forums.ankiweb.net/u/bpearce)\
**Post date:** [October 20, 2023, 9:07pm UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/6 "2023-10-20T21:07:26Z")

</div>

So with that layout I go back to my initial issue of the answer text looking the same as the question text

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/5/3/53616d531b65be62ac6dbac3641625e12544308d.png)

---

<div class="post-metadata">

**Author:** ![bpearce](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@bpearce](https://forums.ankiweb.net/u/bpearce)\
**Post date:** [October 21, 2023, 4:54pm UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/7 "2023-10-21T16:54:40Z")

</div>

This seems like a slightly different issue, but I appreciate you reporting it. Maybe this is just something that might need to be updated down the road.

---

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [October 21, 2023, 5:08pm UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/8 "2023-10-21T17:08:41Z")

</div>

Maybe try this: open the HTML editor (e.g. by clicking CTRL+Shift+X), then move `<li>` after `{{c1::`

E.g. this HTML will give this result

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/b/6/b6ccaf805b380ddfca74c4abc39bc15e74b80c2c.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/e/c/ec07239d0016f4b8e3cd3f871a66b36eb3ed458e.png)

But after moving `<li>` after the opening cloze ‘tag’ it should look something like this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/5/9/59e1beec4a3c47d88ff099b5eee16c6c32cfee08.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/6/5/657097419747df81b64614c2e6daa67911d2ef4f.png)

---

<div class="post-metadata">

**Author:** ![bpearce](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@bpearce](https://forums.ankiweb.net/u/bpearce)\
**Post date:** [October 22, 2023, 8:44pm UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/9 "2023-10-22T20:44:04Z")

</div>

Here is the initial card text/HTML editor before making any of your suggestions

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/7/c/7c4665baa16daa6b7d207992110fa5790b226225.png)

What the answer looks like

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/c/2/c2c0fe3303f5d9a3409b026d05e775be90f68608.png)

I could be completely missing something (e.g. I had no idea this HTML editor ever existed prior to this conversation) but it looks like the \<.li\> is already after the opening cloze.

---

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [October 22, 2023, 9:12pm UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/10 "2023-10-22T21:12:06Z")

</div>

If that is your HTML, try moving the marked `</li>` before `{{c1::`

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/d/a/da4c733f5db8426aac235b1a22c4268d1f99c62f.png)

---

<div class="post-metadata">

**Author:** ![bpearce](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@bpearce](https://forums.ankiweb.net/u/bpearce)\
**Post date:** [October 24, 2023, 5:27am UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/11 "2023-10-24T05:27:46Z")

</div>

This is a fun game of whack a mole. Here is the updated text/HTML editor.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/9/0/90dce802e1d2055ae7885eca399713cbb3ed1611.png)

So that fixed my initial problem of bulleted list (or at least anything beyond the first bullet point) not appearing as an answer should. But now this created two new issues.

1. On the back of the card, the next header, in this case “Major contraindications” now appears as an answer

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/f/1/f16838b426980e4cb5e1cd570f388dad038c990e.png)

1. On the front of the card the “Major contraindications” is formatted incorrectly (not aligned with the rest of the list despite appearing so in the text editor).

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/4/3/430990559b1e5f8b2bf623be8aa405f856573df5.png)

Also, I thanks for all y’alls help so far. It honesty is very much appreciated.

---

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [October 24, 2023, 8:18am UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/12 "2023-10-24T08:18:16Z")

</div>

Try replacing your HTML with this:

```auto
<div style="text-align:center">TEST 2</div><ul><li>Indications/Contraindications</li><ul><li>FDA approved for:</li><ul>{{c1::<li>GAD</li>}}</ul><li>Offlabel use:</li><ul>{{c1::<li>Unipolar depression (augmentation, off-label use)</li><li>SSRI associated sexual dysfunction</li><li>Movement disorders (third/fourth line)</li><li>Shivering, targeted temperature management</li>}}</ul><li>Major contraindications:</li><ul>{{c1::<li>Hypersensitivity to buspirone or its components</li><li>Concurrent use of MAOIs</li>}}</ul></ul></ul>

```

The alignment and the cloze syntax now seem to behave correctly on my computer.  
If it still does not work correctly on your end, please send a screenshot of the `Styling` section of your notes (you can access it by cliking on the `Cards...` button at the top of the Editor or pressing `Ctrl+L`).

To summarize the changes, I tried to simplify and tidy up the code a bit. For details about the HTML, see the spoiler.

> **Some technical details for future reference**
>
> - if there are opening and closing [tags](https://www.simplilearn.com/tutorials/html-tutorial/html-tags) straddling `{{c1::` or `}}`, they will often interfere with the cloze-syntax and will make the cloze deletion not render properly.  
> E.g.: `<li>{{c1::</li>` or `<ul>{{c1::Example </ul>}}`
> 
> - In general, it is advisable to keep the opening (`<tag>`) and closing (`</tag>`) tag either both inside or both outside the cloze.  
> E.g.: `<ul>{{c1::<li>Example</li>}}</ul>`
> 
> - You can check which opening tag corresponds to which closing tag, by clicking on either of them in the HTML editor. Anki should automatically highlight both of them:  
> 
> - To make the alignment of the Front side of the card more consistent, make sure that all the clozes follow the same pattern regarding `<ul>` e `<li>`.  
> E.g. usually you should not have both `<ul>{{c1::Example}}</ul>` and `{{c1::<ul>Example 2</ul>}}` in the same note.

If this does not fix it and/or you have any questions, please ask!

---

<div class="post-metadata">

**Author:** ![bpearce](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@bpearce](https://forums.ankiweb.net/u/bpearce)\
**Post date:** [October 25, 2023, 5:09am UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/13 "2023-10-25T05:09:22Z")

</div>

That fixes the issue perfectly. Thank you so much for helping me with the issue and teaching me something new about anki!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [November 24, 2023, 5:09am UTC](https://forums.ankiweb.net/t/help-with-cloze-formatting-and-bullet-points/35965/14 "2023-11-24T05:09:57Z")

</div>

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