We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f76e104 commit a604e6bCopy full SHA for a604e6b
src/jquery.columnizer.js
@@ -170,9 +170,16 @@
170
var columnText;
171
var latestTextNode = null;
172
while($parentColumn.height() < targetHeight && oText.length){
173
+ //
174
+ // it's been brought up that this won't work for chinese
175
+ // or other languages that don't have the same use of whitespace
176
+ // as english. This will need to be updated in the future
177
+ // to better handle non-english languages.
178
179
+ // https://github.com/adamwulf/Columnizer-jQuery-Plugin/issues/124
180
var indexOfSpace = oText.indexOf(' ', counter2);
181
if (indexOfSpace != -1) {
- columnText = oText.substring(0, oText.indexOf(' ', counter2));
182
+ columnText = oText.substring(0, indexOfSpace);
183
} else {
184
columnText = oText;
185
}
0 commit comments