public static String changeSubsequentIndent(String block, int delta, String lineSeparator) {
    List<String> lines = asList(block.split(lineSeparator));
    if (lines.size() == 1) {
      return block;
    }
    changeIndent(lines.subList(1, lines.size()), delta);
    return join(lineSeparator, lines);
  }
Utility methods for text processing.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/util/TextUtil.java