Improved padding.

This commit is contained in:
Christian P. MOMON 2021-12-03 18:22:52 +01:00
parent e285b88ba8
commit 02a63a3b94

View file

@ -74,7 +74,7 @@ public final class Calgen
//
String yearSeparator = StringUtils.repeat("/", 118);
System.out.println(yearSeparator);
System.out.println(String.format("%s %04d %s", StringUtils.repeat("/", 53), year + 1, StringUtils.repeat("/", 59)));
System.out.println(String.format("%s %04d %s", StringUtils.repeat("/", 53), year + 1, StringUtils.repeat("/", 58)));
System.out.println(yearSeparator);
LocalDate current = LocalDate.of(year, 12, 31);
@ -110,7 +110,7 @@ public final class Calgen
//
if (current.getDayOfMonth() == 1)
{
String dash = StringUtils.repeat("-", 25);
String dash = StringUtils.repeat("-", 24);
String monthName = current.getMonth().getDisplayName(TextStyle.FULL, Locale.FRENCH);
monthName = StringUtils.capitalize(monthName);
String monthLine = String.format("%s %s %s", dash, monthName, dash);