mirror of
				https://github.com/cdryzun/tg_bot_collections.git
				synced 2025-11-04 16:56:43 +08:00 
			
		
		
		
	@ -8,7 +8,7 @@ import re
 | 
			
		||||
from . import *
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def split_lines(text, max_length=18):
 | 
			
		||||
def split_lines(text, max_length=30):
 | 
			
		||||
    def split_line(line):
 | 
			
		||||
        punctuation = r"[,.!?;,。!?;]"
 | 
			
		||||
        parts = re.split(f"({punctuation})", line)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user