Index: trunk/extensions/WebFonts/resources/ext.webfonts.js |
— | — | @@ -270,7 +270,7 @@ |
271 | 271 | var fontFamilyItems = el.style.fontFamily.split( ',' ); |
272 | 272 | $.each( fontFamilyItems, function( i, fontFamily ) { |
273 | 273 | // Remove the ' characters if any. |
274 | | - fontFamily = fontFamily.replace( /'/g, '' ); |
| 274 | + fontFamily = $.trim( fontFamily.replace( /'/g, '' ) ); |
275 | 275 | mw.webfonts.addFont( fontFamily ); |
276 | 276 | }); |
277 | 277 | } |