# 停止按钮中自动删除多余空格

**URL:** <https://meta.discourse.org/t/stop-auto-removing-of-extra-spaces-in-a-button/222864>\
**Category:** Product Support\
**Created:** [2022 年4 月 1 日 18:11 UTC](https://meta.discourse.org/t/stop-auto-removing-of-extra-spaces-in-a-button/222864 "2022-04-01T18:11:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)\
发布日期： [2022 年4 月 1 日 18:11 UTC](https://meta.discourse.org/t/stop-auto-removing-of-extra-spaces-in-a-button/222864/1 "2022-04-01T18:11:24Z")

</div>

我已经自定义了登录和注册按钮的按钮文本，并且我正试图在第一个字符和其余字符之间添加一些额外的空格。

例如，类似这样：  
 ![image](https://global.discourse-cdn.com/meta/original/3X/7/2/72124043297cd7e54e0dc2ef66def9224f29a487.png)

但是，当按钮显示在屏幕上时，它显示为：  
`x Login`  
三个空格被减少到一个。

当我检查 `<span>` 时，它显示 `x Login`，但如果我双击该文本，它会显示原始的  
 ![image](https://global.discourse-cdn.com/meta/original/3X/7/2/72124043297cd7e54e0dc2ef66def9224f29a487.png)  
带有三个空格。

我尝试禁用“删除多余空格”和“美化”选项，但都没有效果。

有人知道为什么会这样以及我该如何解决吗？

编辑：我不得不编辑这个帖子，为带有三个空格的那个添加了截图，因为它在这里也发生了。

---

_[View the full topic](https://meta.discourse.org/t/stop-auto-removing-of-extra-spaces-in-a-button/222864)._
