# 从 Discord 复制粘贴到 Discourse 破坏换行

**URL:** <https://meta.discourse.org/t/copy-pasting-text-from-discord-into-discourse-mangles-paragraph-breaks/298994>\
**Category:** Bug\
**Created:** [2024 年3 月 12 日 11:07 UTC](https://meta.discourse.org/t/copy-pasting-text-from-discord-into-discourse-mangles-paragraph-breaks/298994 "2024-03-12T11:07:06Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Pod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pod/32/119253_2.png) [@Pod](https://meta.discourse.org/u/Pod)\
**Post date:** [2024 年3 月 15 日 01:06 UTC](https://meta.discourse.org/t/copy-pasting-text-from-discord-into-discourse-mangles-paragraph-breaks/298994/5 "2024-03-15T01:06:30Z")

</div>

供您参考：他们怪你 😉

> 嗨 Pod，
> 
> 感谢您抽出宝贵时间与我们联系！
> 
> 我们理解您对从 Discord 复制和粘贴时 HTML 格式的担忧。
> 
> 我们已审查您的问题，发现不同的应用程序处理复制的多行文本方式不同。有些会保留原始的行距（如记事本或 Google 表格），而有些则不会（如您注意到的 Google Docs 或 Discourse）。
> 
> 我们的目标是确保我们的功能在多个平台和应用程序上都能正常运行。但是，由于每个平台和应用程序管理这些功能的方式不同，这可能会带来挑战。
> 
> 希望这能解释清楚！但如果您还需要其他帮助，请告诉我！
> 
> 此致，  
> Nico

看起来 Discord 或 Discourse 不会改变，所以我想我只能记住，如果我从 Discord 复制任何内容，我需要按 CTRL+SHIFT+P 进行神奇粘贴，并且这个 bug 在这里以防其他人遇到此问题。

（我尝试将他们的 CF\_HTML 内容保存到文件中并查看它，在 Firefox、Chrome、Edge 中它都有换行符。我对 Web 开发了解不多，不知道他们发出的内容是否是“有效”的 HTML，或者仅仅是浏览器会勉强正确渲染的 HTML，因为它将其解释为 HTML 1.1 或其他什么东西）

---

_[View the full topic](https://meta.discourse.org/t/copy-pasting-text-from-discord-into-discourse-mangles-paragraph-breaks/298994)._
