fix: make prettyPrint always add a newline
This commit is contained in:
		
							parent
							
								
									2503756c60
								
							
						
					
					
						commit
						f013c5b111
					
				@ -62,7 +62,6 @@ function formatter(value: any) {
 | 
			
		||||
  } else {
 | 
			
		||||
    line += filter(value);
 | 
			
		||||
  }
 | 
			
		||||
  line += "\n";
 | 
			
		||||
  return line;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -146,7 +145,7 @@ class PrettyPrintTranform extends Transform {
 | 
			
		||||
    if (!line) {
 | 
			
		||||
      return cb();
 | 
			
		||||
    }
 | 
			
		||||
    process.stdout.write(line);
 | 
			
		||||
    process.stdout.write(line + "\n");
 | 
			
		||||
    cb();
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user