Index: trunk/parsers/wikidom/lib/es/es.Content.js |
— | — | @@ -638,7 +638,7 @@ |
639 | 639 | annotation.range = { start: index }; |
640 | 640 | stack.push( annotation ); |
641 | 641 | } else if ( bias === 'close' ) { |
642 | | - for ( var i = 0; i < stack.length; i++ ) { |
| 642 | + for ( var i = stack.length - 1; i >= 0; i-- ) { |
643 | 643 | if ( stack[i].type === annotation.type ) { |
644 | 644 | if ( es.Content.compareObjects( stack[i].data, annotation.data ) ) { |
645 | 645 | stack[i].range.end = index; |
— | — | @@ -716,7 +716,7 @@ |
717 | 717 | if ( line != null ) { |
718 | 718 | if ( right ) { |
719 | 719 | for ( j = 1; j < right.length; j++ ) { |
720 | | - this.handleAnnotation( 'close', right[j], line.annotations, i - offset ); |
| 720 | + //this.handleAnnotation( 'close', right[j], line.annotations, i - offset ); |
721 | 721 | } |
722 | 722 | } |
723 | 723 | if ( !line.annotations.length ) { |