showell/CoffeeScriptLineMatcher — Issue #14: Remove comapre lines that provide no value
Author: briannesbitt
Created: 2012-01-24 02:04:05+00:00
State: open

Remove blank lines from the start of a block
Remove blank lines from the end of a block
Remove blank lines from the cs to js comparison if they provide no value.

In the following example remove:
js : 4
js:10
cs:3
cs:5
js:12
js:20

I would keep js:6,14,16,18

class FunctionBinding
constructor: ->

thisIsNotBound: ->

thisIsBound: =>

Generates the following CS / JS compare:

-----
js:1 (function() {
js:2 var FunctionBinding,
js:3 __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
js:4
==============================================================
cs:1 class FunctionBinding
cs:2 constructor: ->
-----
js:5 FunctionBinding = (function() {
js:6
js:7 function FunctionBinding() {
js:8 this.thisIsBound = __bind(this.thisIsBound, this);
js:9 }
js:10
==============================================================
cs:3
-----
==============================================================
cs:4 thisIsNotBound: ->
-----
js:11 FunctionBinding.prototype.thisIsNotBound = function() {};
js:12
==============================================================
cs:5
-----
==============================================================
cs:6 thisIsBound: =>
-----
js:13 FunctionBinding.prototype.thisIsBound = function() {};
js:14
js:15 return FunctionBinding;
js:16
js:17 })();
js:18
js:19 }).call(this);
js:20
==============================================================