Amire80 has uploaded a new change for review. https://gerrit.wikimedia.org/r/61562
Change subject: Update form upstream ...................................................................... Update form upstream Unbreaks escaping. Change-Id: If7774237ba7993f366c6999c9fcefcd56d9221d2 --- M lib/jquery.webfonts.js 1 file changed, 12 insertions(+), 12 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector refs/changes/62/61562/1 diff --git a/lib/jquery.webfonts.js b/lib/jquery.webfonts.js index 88c817e..4cc01e0 100644 --- a/lib/jquery.webfonts.js +++ b/lib/jquery.webfonts.js @@ -253,15 +253,15 @@ base = this.repository.base; version = fontconfig.version; versionSuffix = '?version=' + version + '&20120101'; - styleString = '@font-face { font-family: \'' + fontFamily + '\';\\n'; + styleString = '@font-face { font-family: \'' + fontFamily + '\';\n'; userAgent = window.navigator.userAgent; fontStyle = fontconfig.fontstyle || 'normal'; fontFormats = []; if ( fontconfig.eot ) { - styleString += '\\tsrc: url(\'' + base + fontconfig.eot + versionSuffix + '\');\\n'; + styleString += '\tsrc: url(\'' + base + fontconfig.eot + versionSuffix + '\');\n'; } - styleString += '\\tsrc: '; + styleString += '\tsrc: '; // If the font is present locally, use it. if ( userAgent.match( /Android 2\.3/ ) === null ) { // Android 2.3.x does not respect local() syntax. @@ -269,30 +269,30 @@ styleString += 'local(\'' + fontFamily + '\'),'; } if ( fontconfig.woff ) { - fontFormats.push( '\\t\\turl(\'' + base + fontconfig.woff + versionSuffix + fontFormats.push( '\t\turl(\'' + base + fontconfig.woff + versionSuffix + '\') format(\'woff\')' ); } if ( fontconfig.svg ) { - fontFormats.push( '\\t\\turl(\'' + base + fontconfig.svg + versionSuffix + '#' + fontFormats.push( '\t\turl(\'' + base + fontconfig.svg + versionSuffix + '#' + fontFamily + '\') format(\'svg\')' ); } if ( fontconfig.ttf ) { - fontFormats.push( '\\t\\turl(\'' + base + fontconfig.ttf + versionSuffix + fontFormats.push( '\t\turl(\'' + base + fontconfig.ttf + versionSuffix + '\') format(\'truetype\')' ); } - styleString += fontFormats.join() + ';\\n'; + styleString += fontFormats.join() + ';\n'; if ( fontconfig.fontweight ) { - styleString += '\\tfont-weight:' + fontconfig.fontweight + ';'; + styleString += '\tfont-weight:' + fontconfig.fontweight + ';'; } - styleString += '\\tfont-style:' + fontStyle + ';'; + styleString += '\tfont-style:' + fontStyle + ';'; if ( fontconfig.fontweight !== undefined ) { - styleString += '\font-weight:' + fontconfig.fontweight + ';'; + styleString += '\tfont-weight:' + fontconfig.fontweight + ';'; } if ( fontconfig.fontstyle !== undefined ) { - styleString += '\\tfont-style:' + fontconfig.fontstyle + ';'; + styleString += '\tfont-style:' + fontconfig.fontstyle + ';'; } else { - styleString += '\\tfont-style: normal;'; + styleString += '\tfont-style: normal;'; } styleString += '}'; -- To view, visit https://gerrit.wikimedia.org/r/61562 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If7774237ba7993f366c6999c9fcefcd56d9221d2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector Gerrit-Branch: master Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits