Improved padding.
This commit is contained in:
parent
e285b88ba8
commit
02a63a3b94
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ public final class Calgen
|
||||||
//
|
//
|
||||||
String yearSeparator = StringUtils.repeat("/", 118);
|
String yearSeparator = StringUtils.repeat("/", 118);
|
||||||
System.out.println(yearSeparator);
|
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);
|
System.out.println(yearSeparator);
|
||||||
|
|
||||||
LocalDate current = LocalDate.of(year, 12, 31);
|
LocalDate current = LocalDate.of(year, 12, 31);
|
||||||
|
@ -110,7 +110,7 @@ public final class Calgen
|
||||||
//
|
//
|
||||||
if (current.getDayOfMonth() == 1)
|
if (current.getDayOfMonth() == 1)
|
||||||
{
|
{
|
||||||
String dash = StringUtils.repeat("-", 25);
|
String dash = StringUtils.repeat("-", 24);
|
||||||
String monthName = current.getMonth().getDisplayName(TextStyle.FULL, Locale.FRENCH);
|
String monthName = current.getMonth().getDisplayName(TextStyle.FULL, Locale.FRENCH);
|
||||||
monthName = StringUtils.capitalize(monthName);
|
monthName = StringUtils.capitalize(monthName);
|
||||||
String monthLine = String.format("%s %s %s", dash, monthName, dash);
|
String monthLine = String.format("%s %s %s", dash, monthName, dash);
|
||||||
|
|
Loading…
Reference in a new issue