Skip to content
Browse files

Made 'advanced' the default value of the trim option. Guess 'simple' …

…was too simple after all.
  • Loading branch information...
1 parent b647682 commit 46ed5ba6a9aef7cb818e74c1cf8cae7fbf5639f3 @sorccu committed Aug 25, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/cufon.js
View
4 js/cufon.js
@@ -229,7 +229,7 @@ var Cufon = (function() {
};
var wsStart = /^\s+/, wsEnd = /\s+$/;
return function(text, style, node, previousElement, simple) {
- if (simple) return text.replace(wsStart, '').replace(wsEnd, '');
+ if (simple) return text.replace(wsStart, '').replace(wsEnd, ''); // @fixme too simple
if (previousElement) {
if (previousElement.nodeName.toLowerCase() == 'br') {
text = text.replace(wsStart, '');
@@ -817,7 +817,7 @@ var Cufon = (function() {
ul: 1
},
textShadow: 'none',
- trim: 'simple'
+ trim: 'advanced'
};
var separators = {

0 comments on commit 46ed5ba

Please sign in to comment.
Something went wrong with that request. Please try again.