Index: trunk/parsers/wikidom/lib/es/es.TextFlow.js |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | |
32 | 32 | // Build list of line break offsets |
33 | 33 | var words = [0], |
34 | | - boundary = /[ \-\t\r\n\f]/, |
| 34 | + boundary = /[ \.\,\;\:\-\t\r\n\f]/, |
35 | 35 | left = 0, |
36 | 36 | right = 0, |
37 | 37 | search = 0; |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | var pos = 0, |
48 | 48 | index = 0, |
49 | 49 | metrics = []; |
50 | | - while ( pos < words.length - 1 ) { |
| 50 | + while ( pos < words.length ) { |
51 | 51 | // Create line |
52 | 52 | var $line = $( '<div class="editSurface-line"></div>' ) |
53 | 53 | .attr( 'line-index', index ) |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | |
83 | 83 | // Step forward |
84 | 84 | index++; |
85 | | - pos = m; |
| 85 | + pos = l; |
86 | 86 | } |
87 | 87 | |
88 | 88 | //console.timeEnd( 'TextFlow.render' ); |