src/serialize.js
function leftpad( string, pad, space ) {
   return string.split( '\n' ).join( `\n${spaces( pad, space )}` );
}
function leftpad( string, pad, space ) {
   return string.split( '\n' ).join( `\n${spaces( pad, space )}` );
}
function leftpad ( string , pad , space ) { return string . split ( '\n' ) . join ( ` \n ${ spaces ( pad , space ) } ` ) ; }
Take a multi-line string and pad each line with the given number of spaces.
@private
@param {String} string the string to pad
@param {Number} [pad] the number of spaces to use for indent
@param {String} [space] the character to repeat
@return {String} a string that can be used as padding
Take a multi - line string and pad each line with the given number of spaces .