function extractDescription( descr ) {
	var extended;
	var short;
	var out;
	var tmp;
	var str;
	var i;

	out = {
		'raw': descr
	};
	tmp = descr.split( /\.\r?\n\r?\n/ );
	extended = '';
	if ( tmp.length === 1 ) {
		// Description does not include an extended description:
		short = tmp[ 0 ];
	} else if ( tmp.length > 1 ) {
		// Description includes an extended description:
		short = tmp[ 0 ] + '.';
		for ( i = 1; i < tmp.length; i++ ) {
			if ( i > 1 ) {
				extended += '.\n\n';
			}
			str = tmp[ i ];
			str = replace( str, '\n    ', ' ' );
			str = trim( str );
			extended += str;
		}
	}
	short = replace( short, '\n    ', ' ' );
	short = trim( short );
	extended = trim( extended );

	out.short = short;
	out.extended = extended;
	return out;
}
Extracts the short and extended description and returns description object.

@private
@param {string} descr - raw description
@returns {Object} description object