index.js
function() {
        if (!version) return;
        if (note) version.notes.push(note);

        version.rawNote = normText(
            _.chain(version.notes)
            .map(function(note) {
                return '* '+note.trim();
            })
            .value()
            .join('\n')
        );
        version.notes = _.map(version.notes, normText);
        changelog.versions.push(version);

        note = "";
        version = null;
    }
function() {
        if (!version) return;
        if (note) version.notes.push(note);

        version.rawNote = normText(
            _.chain(version.notes)
            .map(function(note) {
                return '* '+note.trim();
            })
            .value()
            .join('\n')
        );
        version.notes = _.map(version.notes, normText);
        changelog.versions.push(version);

        note = "";
        version = null;
    }
function ( ) { if ( ! version ) return ; if ( note ) version . notes . push ( note ) ; version . rawNote = normText ( _ . chain ( version . notes ) . map ( function ( note ) { return '* ' + note . trim ( ) ; } ) . value ( ) . join ( '\n' ) ) ; version . notes = _ . map ( version . notes , normText ) ; changelog . versions . push ( version ) ; note = "" ; version = null ; }
Push a new version and normalize notes
Push a new version and normalize notes