src/options/vendor-prefix-align.js
function updateIndent(info, dict, whitespaceNode) {
    var item = dict[info.id];
    if (!item)
        return whitespaceNode;

    var crPos = whitespaceNode.lastIndexOf('\n');
    var tabPos = whitespaceNode.lastIndexOf('\t');
    if (tabPos > crPos) crPos = tabPos;

    var firstPart = whitespaceNode.substr(0, crPos + 1);
    var extraIndent = new Array(
        (item.prefixLength - info.prefixLength) +
        (item.extra - info.extra) +
        whitespaceNode.length - firstPart.length +
        1).join(' ');

    return firstPart.concat(extraIndent);
  }
function updateIndent(info, dict, whitespaceNode) {
    var item = dict[info.id];
    if (!item)
        return whitespaceNode;

    var crPos = whitespaceNode.lastIndexOf('\n');
    var tabPos = whitespaceNode.lastIndexOf('\t');
    if (tabPos > crPos) crPos = tabPos;

    var firstPart = whitespaceNode.substr(0, crPos + 1);
    var extraIndent = new Array(
        (item.prefixLength - info.prefixLength) +
        (item.extra - info.extra) +
        whitespaceNode.length - firstPart.length +
        1).join(' ');

    return firstPart.concat(extraIndent);
  }
function updateIndent ( info , dict , whitespaceNode ) { var item = dict [ info . id ] ; if ( ! item ) return whitespaceNode ; var crPos = whitespaceNode . lastIndexOf ( '\n' ) ; var tabPos = whitespaceNode . lastIndexOf ( '\t' ) ; if ( tabPos > crPos ) crPos = tabPos ; var firstPart = whitespaceNode . substr ( 0 , crPos + 1 ) ; var extraIndent = new Array ( ( item . prefixLength - info . prefixLength ) + ( item . extra - info . extra ) + whitespaceNode . length - firstPart . length + 1 ) . join ( ' ' ) ; return firstPart . concat ( extraIndent ) ; }
Returns string with correct number of spaces for info.baseName property.

@param {Object} info
@param {Object} dict
@param {String} whitespaceNode
@returns {String}
Returns string with correct number of spaces for info . baseName property .