# \[POSSIBLE BUG\] \[Ctrl-C C\] does not remove no breaking spaces

**URL:** <https://forums.ankiweb.net/t/possible-bug-ctrl-c-c-does-not-remove-no-breaking-spaces/13844>\
**Category:** Help\
**Created:** [October 2, 2021, 5:36pm UTC](https://forums.ankiweb.net/t/possible-bug-ctrl-c-c-does-not-remove-no-breaking-spaces/13844 "2021-10-02T17:36:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlackBeans](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/blackbeans/32/2283_2.png) [@BlackBeans](https://forums.ankiweb.net/u/BlackBeans)\
**Post date:** [October 2, 2021, 5:36pm UTC](https://forums.ankiweb.net/t/possible-bug-ctrl-c-c-does-not-remove-no-breaking-spaces/13844/1 "2021-10-02T17:36:26Z")

</div>

When you type within a field, all spaces are automatically converted to non breaking spaces (`&nbsp;`) until you type the next character, so that endline spaces are non-breaking (at least that what I have observed). However, I have the impression that when you insert characters, for example with [Ctrl-C C], it does not remove non-breaking spaces. The effect is that when you look at a card with the HTML editor feature on, you see a lot of `&nbsp;` before every MathJax tag. I think this is a bug, but maybe it’s just a feature whose purpose I am not aware of.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [October 6, 2021, 8:29am UTC](https://forums.ankiweb.net/t/possible-bug-ctrl-c-c-does-not-remove-no-breaking-spaces/13844/2 "2021-10-06T08:29:17Z")

</div>

I’m not sure what you mean by ctrl+c c, but there’s a chance this has been resolved by Henrik’s recent changes to the editor.

---

<div class="post-metadata">

**Author:** ![BlackBeans](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/blackbeans/32/2283_2.png) [@BlackBeans](https://forums.ankiweb.net/u/BlackBeans)\
**Post date:** [October 6, 2021, 12:10pm UTC](https://forums.ankiweb.net/t/possible-bug-ctrl-c-c-does-not-remove-no-breaking-spaces/13844/3 "2021-10-06T12:10:31Z")

</div>

Hum, yes, I meant [Ctrl-m m], the MathJax shortcut.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [October 9, 2021, 2:46am UTC](https://forums.ankiweb.net/t/possible-bug-ctrl-c-c-does-not-remove-no-breaking-spaces/13844/4 "2021-10-09T02:46:51Z")

</div>

Ok, it’s still an issue - I mistakenly thought you were talking about nbsps inside the MathJax block. I’m not sure there’s a simple way to fix this, as the nbsp is inserted by the web toolkit.

---

<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:** [May 1, 2023, 4:48am UTC](https://forums.ankiweb.net/t/possible-bug-ctrl-c-c-does-not-remove-no-breaking-spaces/13844/5 "2023-05-01T04:48:03Z")

</div>


