# Space causes a mismatch

**URL:** <https://forums.ankiweb.net/t/space-causes-a-mismatch/47038>\
**Category:** Suggestions\
**Created:** [July 13, 2024, 10:13pm UTC](https://forums.ankiweb.net/t/space-causes-a-mismatch/47038 "2024-07-13T22:13:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Otocione](https://avatars.discourse-cdn.com/v4/letter/o/8797f3/32.png) [@Otocione](https://forums.ankiweb.net/u/Otocione)\
**Post date:** [July 13, 2024, 10:13pm UTC](https://forums.ankiweb.net/t/space-causes-a-mismatch/47038/1 "2024-07-13T22:13:03Z")

</div>

If you put an extra space at the end of your answer, you get a mismatch on the Mac and iPhone versions. This is a little trivial but it also seems silly. When learning sentences, it’s easier to hit “space” twice to get the period (stop) to appear on the iPhone, but that causes a mismatch.

Also, it’s possible that you might accidentally add a space when entering data. (I haven’t tested this) that might result in a mismatch.

It would be nice if an extra space(s) at the beginning or end of an answer don’t throw a mismatch.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [July 13, 2024, 11:56pm UTC](https://forums.ankiweb.net/t/space-causes-a-mismatch/47038/2 "2024-07-13T23:56:24Z")

</div>

Are you talking about on type-answer cards?

Since you control the grade your answer gets, you can just ignore that single character and grade your answer correct anyway.

---

<div class="post-metadata">

**Author:** ![Otocione](https://avatars.discourse-cdn.com/v4/letter/o/8797f3/32.png) [@Otocione](https://forums.ankiweb.net/u/Otocione)\
**Post date:** [July 13, 2024, 11:59pm UTC](https://forums.ankiweb.net/t/space-causes-a-mismatch/47038/3 "2024-07-13T23:59:24Z")

</div>

Yes, you can ignore it, but you have to double-check it to see if you missed something. It is a trivial issue, but it’s kind of annoying to be told you’re wrong when you’re not.

---

<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:** [July 20, 2024, 4:56am UTC](https://forums.ankiweb.net/t/space-causes-a-mismatch/47038/4 "2024-07-20T04:56:49Z")

</div>

I’d expect the comparison to be identical on both platforms. Please follow the steps on [Troubleshooting - Anki Manual](https://docs.ankiweb.net/troubleshooting.html), and if you can still reproduce the difference, please let us know.

---

<div class="post-metadata">

**Author:** ![Otocione](https://avatars.discourse-cdn.com/v4/letter/o/8797f3/32.png) [@Otocione](https://forums.ankiweb.net/u/Otocione)\
**Post date:** [July 20, 2024, 10:49pm UTC](https://forums.ankiweb.net/t/space-causes-a-mismatch/47038/5 "2024-07-20T22:49:14Z")

</div>

This occurs on the iPhone app and the desktop app. I went to the troubleshooting page and rebuilt the database. Same result. Here’s a screenshot.

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

---

<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:** [July 24, 2024, 2:17pm UTC](https://forums.ankiweb.net/t/space-causes-a-mismatch/47038/6 "2024-07-24T14:17:54Z")

</div>

I’m sorry, for some reason I thought you were saying AnkiMobile is behaving differently here. We can’t strip leading spaces, as users may use them for indentation. Trailing spaces that mean something are less common, but it might be a little confusing to handle them differently. I will keep an eye on demand for this, in any case.

---

<div class="post-metadata">

**Author:** ![Otocione](https://avatars.discourse-cdn.com/v4/letter/o/8797f3/32.png) [@Otocione](https://forums.ankiweb.net/u/Otocione)\
**Post date:** [July 24, 2024, 2:30pm UTC](https://forums.ankiweb.net/t/space-causes-a-mismatch/47038/7 "2024-07-24T14:30:58Z")

</div>

Although I understand the concern, It’s a little hard to imagine where a trailing space would have any significance.
