r92684 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92683‎ | r92684 | r92685 >
Date:21:29, 20 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Solve problem with paragraphs containing only one word
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.TextFlow.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.TextFlow.js
@@ -217,7 +217,7 @@
218218 }
219219 // If the last character is not a boundary character, we need to append the final range to the
220220 // "boundaries" and "words" arrays
221 - if ( end < text.length ) {
 221+ if ( end < text.length || this.boundaries.length === 1 ) {
222222 this.boundaries.push( text.length );
223223 }
224224 };

Status & tagging log