mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Update Prettier to version 2.0
Please note that these changes were done automatically, using `gulp lint --fix`. Given that the major version number was increased, there's a fair number of (primarily whitespace) changes; please see https://prettier.io/blog/2020/03/21/2.0.0.html In order to reduce the size of these changes somewhat, this patch maintains the old "arrowParens" style for now (once mozilla-central updates Prettier we can simply choose the same formatting, assuming it will differ here).
This commit is contained in:
parent
a4dd081d7b
commit
426945b480
145 changed files with 2005 additions and 2009 deletions
|
@ -19,7 +19,7 @@ var getLookupTableFactory = require("./core_utils.js").getLookupTableFactory;
|
|||
// Some characters, e.g. copyrightserif, are mapped to the private use area
|
||||
// and might not be displayed using standard fonts. Mapping/hacking well-known
|
||||
// chars to the similar equivalents in the normal characters range.
|
||||
var getSpecialPUASymbols = getLookupTableFactory(function(t) {
|
||||
var getSpecialPUASymbols = getLookupTableFactory(function (t) {
|
||||
t[63721] = 0x00a9; // copyrightsans (0xF8E9) => copyright
|
||||
t[63193] = 0x00a9; // copyrightserif (0xF6D9) => copyright
|
||||
t[63720] = 0x00ae; // registersans (0xF8E8) => registered
|
||||
|
@ -241,7 +241,7 @@ function isRTLRangeFor(value) {
|
|||
|
||||
// The normalization table is obtained by filtering the Unicode characters
|
||||
// database with <compat> entries.
|
||||
var getNormalizedUnicodes = getLookupTableFactory(function(t) {
|
||||
var getNormalizedUnicodes = getLookupTableFactory(function (t) {
|
||||
t["\u00A8"] = "\u0020\u0308";
|
||||
t["\u00AF"] = "\u0020\u0304";
|
||||
t["\u00B4"] = "\u0020\u0301";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue