code: func mergeText(text []string) []string {
  	merged := make([]string, 0, len(text))
  	merge := false
  	for _, line := range text {
  		if merge {
  			merge = false
  			merged[len(merged)-1] += " " + line
  			continue
  		}
  		merged = append(merged, line)
  		switch line {
  		case "build", "failed", "exception":
  			merge = true
  		default:
  			merge = false
  		}
  	}
  
  	// Filter out special cased statuses to make the presentation look cleaner.
  	result := make([]string, 0, len(merged))
  	for _, item := range merged {
  		switch item {
  		case "failed steps", "failed Failure reason":
  			// Ignore because they're recipe artifacts.
  		default:
  			result = append(result, item)
  		}
  	}
  	return result
  }
docs: // mergeText merges buildbot summary texts, which sometimes separates
  // words that should be merged together, this combines them into a single
  // line.