mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-31 06:56:39 +00:00 
			
		
		
		
	🐛 fix white space before plain text #18
This commit is contained in:
		| @@ -344,4 +344,5 @@ class BaseMessage(list, abc.ABC): | |||||||
|         def _concat(x: str, y: BaseMessageSegment) -> str: |         def _concat(x: str, y: BaseMessageSegment) -> str: | ||||||
|             return f"{x} {y.data['text']}" if y.type == "text" else x |             return f"{x} {y.data['text']}" if y.type == "text" else x | ||||||
|  |  | ||||||
|         return reduce(_concat, self, "") |         plain_text = reduce(_concat, self, "") | ||||||
|  |         return plain_text[1:] if plain_text else plain_text | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user