question: protected String indent ( String s , int nSpaces ) { String indent = indentString ( nSpaces ) ; StringBuilder buf = new StringBuilder ( ) ; String nl = "" ; for ( String line : s . split ( "\n" ) ) { buf . append ( nl ) ; buf . append ( indent + line ) ; nl = "\n" ; } return buf . toString ( ) ; }
target:  Indent a string by prepending a given amount of empty spaces to each line of the string.