mirror of
				https://github.com/craigerl/aprsd.git
				synced 2025-11-03 21:20:23 -05:00 
			
		
		
		
	remove fortune white space
This commit is contained in:
		
							parent
							
								
									83f42dd7b7
								
							
						
					
					
						commit
						ca05676c98
					
				@ -32,6 +32,12 @@ class FortunePlugin(plugin.APRSDPluginBase):
 | 
			
		||||
                timeout=3,
 | 
			
		||||
                universal_newlines=True,
 | 
			
		||||
            )
 | 
			
		||||
            output = (
 | 
			
		||||
                output.replace("\r", "")
 | 
			
		||||
                .replace("\n", "")
 | 
			
		||||
                .replace("  ", "")
 | 
			
		||||
                .replace("\t", " ")
 | 
			
		||||
            )
 | 
			
		||||
        except subprocess.CalledProcessError as ex:
 | 
			
		||||
            reply = "Fortune command failed '{}'".format(ex.output)
 | 
			
		||||
        else:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user