fix circles escapeansi being passed bytes
This commit is contained in:
		
							parent
							
								
									d47c546620
								
							
						
					
					
						commit
						da1940cc8e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -106,7 +106,7 @@ class OnionrFlow:
 | 
				
			||||||
                    content = block.getContent()
 | 
					                    content = block.getContent()
 | 
				
			||||||
                    # Escape new lines, remove trailing whitespace, and escape ansi sequences
 | 
					                    # Escape new lines, remove trailing whitespace, and escape ansi sequences
 | 
				
			||||||
                    content = escapeansi.escape_ANSI(content.replace(
 | 
					                    content = escapeansi.escape_ANSI(content.replace(
 | 
				
			||||||
                        '\n', '\\n').replace('\r', '\\r').strip())
 | 
					                        b'\n', b'\\n').replace(b'\r', b'\\r').strip().decode('utf-8'))
 | 
				
			||||||
                    logger.info(block.getDate().strftime(
 | 
					                    logger.info(block.getDate().strftime(
 | 
				
			||||||
                        "%m/%d %H:%M") + ' - ' + logger.colors.reset + content, prompt=False, terminal=True)
 | 
					                        "%m/%d %H:%M") + ' - ' + logger.colors.reset + content, prompt=False, terminal=True)
 | 
				
			||||||
                    self.alreadyOutputed.append(b_hash)
 | 
					                    self.alreadyOutputed.append(b_hash)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue