Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修整两处格式错误 #1873

Merged
merged 1 commit into from
Apr 10, 2019
Merged

修整两处格式错误 #1873

merged 1 commit into from
Apr 10, 2019

Conversation

fwolf
Copy link
Contributor

@fwolf fwolf commented Apr 2, 2019

在转发 Telegram Channel 到 Mastodon 的过程中,发现有两处格式错误:

  1. hashtag 和斜体内容, Mastodon 不支持,就变成 <i>#tag</i> 这样的形式了,版式很乱且没必要,这个一般用的也少,干脆就去掉了。
  2. 在去除不可见字符的时候,应当保留回车 \r \n ,这样可以更好的保持排版格式。(源代码中参照的 stackoverflow 链接中的第二个,回答中的提示也有保留回车的选项,就套过来了。

@DIYgod
Copy link
Owner

DIYgod commented Apr 8, 2019

不能因为 Mastodon 不支持就去掉啊...RSS 阅读器都是支持的

@fwolf
Copy link
Contributor Author

fwolf commented Apr 8, 2019

嗯,那第 1 点就算了,第 2 个算是以前没有处理干净,你看看能否收了?

@DIYgod
Copy link
Owner

DIYgod commented Apr 9, 2019

嗯,那第 1 点就算了,第 2 个算是以前没有处理干净,你看看能否收了?

第 2 点可以,把第 1 点 revert 吧

@fwolf
Copy link
Contributor Author

fwolf commented Apr 9, 2019

嗯,那第 1 点就算了,第 2 个算是以前没有处理干净,你看看能否收了?

第 2 点可以,把第 1 点 revert 吧

好啦。

@DIYgod DIYgod merged commit f87fcdd into DIYgod:master Apr 10, 2019
@DIYgod
Copy link
Owner

DIYgod commented Apr 10, 2019

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants