Skip to content

Commit 2826732

Browse files
committed
fix: preserve whitespace when splitting long qqofficial messages
1 parent 5a2055c commit 2826732

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def _split_message(cls, text: str) -> list[str]:
243243
break
244244

245245
chunks.append(remaining[:split_point])
246-
remaining = remaining[split_point:].lstrip()
246+
remaining = remaining[split_point:]
247247

248248
return chunks
249249

0 commit comments

Comments
 (0)