# 点击“引用”按钮不应该把引用放在新行吗？

**URL:** <https://meta.discourse.org/t/shouldnt-hitting-the-quote-button-put-the-quote-on-a-new-line-in-the-message/178399>\
**Category:** Product Support\
**Created:** [2021 年2 月 4 日 12:04 UTC](https://meta.discourse.org/t/shouldnt-hitting-the-quote-button-put-the-quote-on-a-new-line-in-the-message/178399 "2021-02-04T12:04:42Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

作者： ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
发布日期： [2021 年2 月 11 日 17:17 UTC](https://meta.discourse.org/t/shouldnt-hitting-the-quote-button-put-the-quote-on-a-new-line-in-the-message/178399/13 "2021-02-11T17:17:54Z")

</div>

修改格式以支持行尾引号比修复编辑器关闭时的文本插入代码要困难得多，因此我在该 PR 中采用了后一种方法：

> <https://github.com/discourse/discourse/pull/12049>
>
> Normally we look at where the cursor is, but when the composer is closed
> we don…'t have a cursor and just append at the end. This fix adds a new
> line to make sure quotes will always work when inserted when the
> composer is closed.

---

_[View the full topic](https://meta.discourse.org/t/shouldnt-hitting-the-quote-button-put-the-quote-on-a-new-line-in-the-message/178399)._
