@@ -241,17 +241,21 @@ public static void main(String[] args) throws IOException {
241241
242242 private static void showText (PrintWriter out , int MAX ) {
243243 EmojiData current = EmojiData .of (Emoji .VERSION_TO_GENERATE );
244-
245- out .println ("TOTALS\n " );
244+
245+ // The EMPTY_COLUMNS is so that we have the same number of tab columns on each line, displaying better in github
246+
247+ out .println ("TOTALS" + EMPTY_COLUMNS );
248+ out .println (EMPTY_COLUMNS );
246249 for (Source source : Source .VENDOR_SOURCES ) {
247250 final UnicodeSet supported = getSupported (source );
248251 UnicodeSet missing = new UnicodeSet (current .getAllEmojiWithoutDefectives ()).removeAll (supported );
249252 getCounts (out , source , "missing\t v" + current .getVersionString (), missing , MAX );
250253 // getCounts(PrintWriter out, Source source, String title, UnicodeSet missing, int MAX) {
251254 }
252- out .println ();
255+ out .println (EMPTY_COLUMNS );
253256 Output <Boolean > printed = new Output <>(false );
254- out .println ("DETAILS\n " );
257+ out .println ("DETAILS" + EMPTY_COLUMNS );
258+ out .println (EMPTY_COLUMNS );
255259 for (Source source : Source .VENDOR_SOURCES ) {
256260 final UnicodeSet supported = getSupported (source );
257261 //System.out.println(source + "\t" + supported.size() + "\t" + max(supported.toPattern(false), MAX));
@@ -266,35 +270,35 @@ private static void showText(PrintWriter out, int MAX) {
266270 missing .removeAll (foundItems );
267271 }
268272 if (!missing .isEmpty ()) {
269- out .println ("\t Others: " + PRETTY_HEX .format (missing ));
273+ out .println ("Others" + EMPTY_COLUMNS + PRETTY_HEX .format (missing ));
270274 printed .value = true ;
271275 }
272276
273277 if (printed .value ) {
274- out .println ();
278+ out .println (EMPTY_COLUMNS );
275279 }
276280 for (Breakdown breakdown : breakdowns ) {
277281 UnicodeSet foundItems = getCounts (out , source , breakdown , -1 , printed );
278282 missing .removeAll (foundItems );
279283 }
280284 if (!missing .isEmpty ()) {
281- out .println ("\t Others: " + PRETTY_HEX .format (missing ));
285+ out .println ("Others" + EMPTY_COLUMNS + PRETTY_HEX .format (missing ));
282286 }
283287
284288 if (printed .value ) {
285- out .println ();
289+ out .println (EMPTY_COLUMNS );
286290 }
287291 for (Breakdown breakdown : breakdowns ) {
288292 UnicodeSet foundItems = getCounts (out , source , breakdown , -2 , printed );
289293 missing .removeAll (foundItems );
290294 }
291295 if (!missing .isEmpty ()) {
292- out .println ("\t Others: " + formatFiles (source , missing ));
296+ out .println ("Others" + EMPTY_COLUMNS + formatFiles (source , missing ));
293297 }
294298
295299 if (printed .value ) {
296- out .println ();
297- out .println ();
300+ out .println (EMPTY_COLUMNS );
301+ out .println (EMPTY_COLUMNS );
298302 }
299303
300304 out .flush ();
@@ -319,15 +323,18 @@ private static UnicodeSet getCounts(PrintWriter out, Source source, Breakdown br
319323 return breakdown .getSupported (source ); // new UnicodeSet(breakdown.uset).retainAll(getSupported(source)).freeze();
320324 }
321325
326+ static final String EMPTY_COLUMNS = "\t \t \t \t \t " ;
327+
322328 private static void getCounts (PrintWriter out , Source source , String title , UnicodeSet missing , int MAX ) {
323- out .println (source + " \t "
324- + title
329+ out .println (source
330+ + " \t " + title
325331 + "\t " + missing .size ()
326332 + "\t " + (MAX == -1 ? "hex\t " + PRETTY_HEX .format (missing )
327333 : MAX == -2 ? "file\t " + formatFiles (source , missing )
328334 : "plain\t " + max (PRETTY_PLAIN .format (missing ), MAX )
329335 )
330336 );
337+
331338 }
332339
333340 private static String formatFiles (Source type , UnicodeSet lastMissingSingletons ) {
0 commit comments