mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-16 12:51:39 +00:00
fix(event): fix CR
in text
This commit is contained in:
parent
323d5604db
commit
fa64f9dca9
@ -375,7 +375,13 @@ async function parseElements(
|
|||||||
switch (m.textElement!.atType) {
|
switch (m.textElement!.atType) {
|
||||||
case AtType.None: {
|
case AtType.None: {
|
||||||
// 纯文本消息
|
// 纯文本消息
|
||||||
elements.push(ctx.chronocat.h.text(m.textElement?.content))
|
elements.push(
|
||||||
|
ctx.chronocat.h.text(
|
||||||
|
m
|
||||||
|
.textElement!.content.replaceAll('\r\n', '\n')
|
||||||
|
.replaceAll('\r', '\n'),
|
||||||
|
),
|
||||||
|
)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user