Prettify JSON in ext.uls.webfonts.repository.js

Use a prettifyed JSON with tabs for indenting. In non-debug mode the
whitespaces get removed by the minimizer.

Change-Id: I17f4ebabccdada3c2ad45a7e0119a4f246de0ebb
This commit is contained in:
Fomafix
2017-04-16 23:06:07 +02:00
parent c32568390e
commit bd9a734fb3
2 changed files with 1005 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -31,7 +31,7 @@ class CompileFontRepo extends Maintenance {
$list = $compiler->getRepository(); $list = $compiler->getRepository();
$json = FormatJson::encode( $list ); $json = FormatJson::encode( $list, "\t" );
$js = <<<JAVASCRIPT $js = <<<JAVASCRIPT
// Do not edit! This file is generated from data/fontrepo by data/fontrepo/scripts/compile.php // Do not edit! This file is generated from data/fontrepo by data/fontrepo/scripts/compile.php
( function ( $ ) { ( function ( $ ) {