public static String changeIndent(String line, int delta) {
    return delta > 0 ? repeatChar(' ', delta) + line : line.substring(-delta);
  }
Utility methods for text processing.

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