# Bug：消息中的换行符

**URL:** <https://meta.discourse.org/t/bug-newline-symbol-in-message/105336>\
**Category:** Bug\
**Created:** [2018年十二月30日 20:54 UTC](https://meta.discourse.org/t/bug-newline-symbol-in-message/105336 "2018-12-30T20:54:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Harvey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brian_harvey/32/127856_2.png) [@Brian\_Harvey](https://meta.discourse.org/u/Brian_Harvey)\
**Post date:** [2018年十二月30日 20:54 UTC](https://meta.discourse.org/t/bug-newline-symbol-in-message/105336/1 "2018-12-30T20:54:20Z")

</div>

NL 符号 U+2424 本应像 Unicode 图表中显示的那样，在文本中呈现为两个小写字母 N 和 L。但您却将其显示为实际的换行符，如下所示：␤（这表现为开始新的一行，但它应看起来与同类别的其他符号一致：␠ ␡ ␢ ␣。只有 U+000A 才应真正开始新的一行。）

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2018年十二月31日 00:04 UTC](https://meta.discourse.org/t/bug-newline-symbol-in-message/105336/2 "2018-12-31T00:04:17Z")

</div>

Testing … ␤ maybe there is a bug in nokogiri…

Seems to work just fine here

```plaintext
Testing .... &#9252; maybe there is a bug in nokogiri...

```

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年十二月31日 01:19 UTC](https://meta.discourse.org/t/bug-newline-symbol-in-message/105336/3 "2018-12-31T01:19:29Z")

</div>

I am not sure what exactly is being reporting here? Are you saying _email_ versions of the posts, as delivered through email notifications, have this?

---

<div class="post-metadata">

**Author:** ![Brian\_Harvey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brian_harvey/32/127856_2.png) [@Brian\_Harvey](https://meta.discourse.org/u/Brian_Harvey)\
**Post date:** [2018年十二月31日 02:05 UTC](https://meta.discourse.org/t/bug-newline-symbol-in-message/105336/4 "2018-12-31T02:05:34Z")

</div>

No, the messages as shown online.

 ![newline](https://global.discourse-cdn.com/meta/original/3X/0/0/00ffc36e2614a61367386066a1384124b2c61474.png)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2018年十二月31日 03:08 UTC](https://meta.discourse.org/t/bug-newline-symbol-in-message/105336/5 "2018-12-31T03:08:51Z")

</div>

Yes I can repro this, the workaround for now is to use `&#9252;` instead.

@Vitaly this appears to happen in [https://markdown-it.github.io](https://markdown-it.github.io) , do you know if this is on purpose in the engine? It does not happen in dingus: [commonmark.js demo](https://spec.commonmark.org/dingus/)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年十一月29日 13:40 UTC](https://meta.discourse.org/t/bug-newline-symbol-in-message/105336/6 "2021-11-29T13:40:18Z")

</div>



---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2021年十二月2日 01:54 UTC](https://meta.discourse.org/t/bug-newline-symbol-in-message/105336/7 "2021-12-02T01:54:40Z")

</div>

测试… ☀ 线在此处结束 →

萨姆，在我看来这已经修复了？

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2021年十二月2日 01:57 UTC](https://meta.discourse.org/t/bug-newline-symbol-in-message/105336/8 "2021-12-02T01:57:54Z")

</div>

是的，引入 nokogumbo 解决了这个问题以及其他一些类似的问题 🎊

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2021年十二月2日 01:58 UTC](https://meta.discourse.org/t/bug-newline-symbol-in-message/105336/9 "2021-12-02T01:58:10Z")

</div>


