If there are open points , then we add the difference between previous and current point .
if ( i > 0 ) & ( points [ i ] [ 0 ] > points [ i - 1 ] [ 0 ] ) & ( Counter > 0 ) : NEW_LINE INDENT result += ( points [ i ] [ 0 ] - points [ i - 1 ] [ 0 ] ) NEW_LINE DEDENT