parameters: (self, in_path, out_path)
return_statement: return '\n' + output
docstring: Format task output for logging.
docstring_summary: Format task output for logging.
docstring_tokens: Format task output for logging .
function: def format_output(self, in_path, out_path):
      """Format task output for logging."""
      if not self.output:
        return ''
      output = self.output
  
      # Replace full paths to prevent differences based on build directories.
      if in_path:
        output = output.replace(in_path, '${IN}')
      if out_path:
        output = output.replace(out_path, '${OUT}')
  
      # Indent.
      output = ''.join(('    ' + line) for line in output.splitlines(True))
      return '\n' + output
function_tokens: def format_output ( self , in_path , out_path ) : if not self . output : return '' output = self . output # Replace full paths to prevent differences based on build directories. if in_path : output = output . replace ( in_path , '${IN}' ) if out_path : output = output . replace ( out_path , '${OUT}' ) # Indent. output = '' . join ( ( '    ' + line ) for line in output . splitlines ( True ) ) return '\n' + output