Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js |
— | — | @@ -160,7 +160,7 @@ |
161 | 161 | var position = wikitext.indexOf( text, offset ); |
162 | 162 | // Update offset to avoid stumbling on duplicate headings |
163 | 163 | if ( position > offset ) { |
164 | | - offset = position; |
| 164 | + offset = position + 1; |
165 | 165 | } else if ( position == -1 ) { |
166 | 166 | // Not sure this is possible, or what should happen |
167 | 167 | continue; |