Index: trunk/parsers/wikidom/lib/es/es.Content.js |
— | — | @@ -700,12 +700,12 @@ |
701 | 701 | } else if ( !leftPlain && !rightPlain ) { |
702 | 702 | // [formatted][formatted] pair, open/close any differences |
703 | 703 | for ( j = 1; j < left.length; j++ ) { |
704 | | - if ( right.indexOf( left[j] ) === -1 ) { |
| 704 | + if ( this.indexOfAnnotation( i , left[j], true ) === -1 ) { |
705 | 705 | this.handleAnnotation( 'close', left[j], line.annotations, i - offset ); |
706 | 706 | } |
707 | 707 | } |
708 | 708 | for ( j = 1; j < right.length; j++ ) { |
709 | | - if ( left.indexOf( right[j] ) === -1 ) { |
| 709 | + if ( this.indexOfAnnotation( i - 1, right[j], true ) === -1 ) { |
710 | 710 | this.handleAnnotation( 'open', right[j], line.annotations, i - offset ); |
711 | 711 | } |
712 | 712 | } |