mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 00:51:56 +00:00 
			
		
		
		
	Leave blank lines blank terminal output.
Would add some ANSI colour codes previously.
This commit is contained in:
		
				
					committed by
					
						
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							83dc8468b0
						
					
				
				
					commit
					3523f60299
				
			@@ -27,6 +27,10 @@ pub fn as_terminal_escaped(
 | 
			
		||||
    italics: bool,
 | 
			
		||||
    background_color: Option<highlighting::Color>,
 | 
			
		||||
) -> String {
 | 
			
		||||
    if text.is_empty() {
 | 
			
		||||
        return text.to_string();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    let mut style = if !colored {
 | 
			
		||||
        Style::default()
 | 
			
		||||
    } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user