# 有没有简单的方法可以保留诗歌开头的空格和其他格式？

**URL:** https://meta.discourse.org/t/is-there-a-simple-way-to-not-strip-leading-spaces-and-other-formatting-in-a-poem/407991
**Category:** Support
**Tags:** composer
**Created:** [2026 年7 月 20 日 00:06 UTC](https://meta.discourse.org/t/is-there-a-simple-way-to-not-strip-leading-spaces-and-other-formatting-in-a-poem/407991 "2026-07-20T00:06:01Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### 作者： ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### 发布日期： [2026 年7 月 21 日 23:49 UTC](https://meta.discourse.org/t/is-there-a-simple-way-to-not-strip-leading-spaces-and-other-formatting-in-a-poem/407991/8 "2026-07-21T23:49:37Z")

</div>

你可能会发现这篇帖子（以及该主题）也很有用

> [@使用&nbsp;进行帖子格式化以实现制表符缩进](https://meta.discourse.org/t/post-formatting-using-nbsp-for-tab-indentations/393109/8?u=lilly):
>
> 我将为您提供一些可用于博客式帖子的快速 CSS 格式化技巧。 您的缩进方式不正确。使用 CSS 的正确方法如下（缩进标准为 2ems）： 在 common.scss 中 [data-theme-indent="indent"] { text-indent: 2em; } 在您的帖子中： \<div data-theme-indent="indent"\> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam \</div\> 另外，如果您想对图像和对齐进行其他格式化： 在 common.scss 中： [data-theme-image="left"] { float: left; img { margin: 0 1em 0 0; …

该主题中还有一个链接，指向一个简单的编辑器工具栏按钮添加项，用于格式化文本，那是我某天快速制作的。

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-simple-way-to-not-strip-leading-spaces-and-other-formatting-in-a-poem/407991)._
