zephyr_mirror: Tweak linewrapping algorithm.
(imported from commit 1165a7680251f6bb365f44a60612fffe0fbbae42)
This commit is contained in:
		
							parent
							
								
									defaeb935e
								
							
						
					
					
						commit
						dd07236eec
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -44,7 +44,7 @@ def to_zephyr_username(humbug_username):
 | 
				
			||||||
def different_paragraph(line, next_line):
 | 
					def different_paragraph(line, next_line):
 | 
				
			||||||
    words = next_line.split()
 | 
					    words = next_line.split()
 | 
				
			||||||
    return (len(line + " " + words[0]) < len(next_line) * 0.8 or
 | 
					    return (len(line + " " + words[0]) < len(next_line) * 0.8 or
 | 
				
			||||||
            len(line + " " + words[0]) < 60 or
 | 
					            len(line + " " + words[0]) < 50 or
 | 
				
			||||||
            len(line) < len(words[0]))
 | 
					            len(line) < len(words[0]))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Linewrapping algorithm based on:
 | 
					# Linewrapping algorithm based on:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue