mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
cal: Center the month-year text
For now this only has an effect when displaying two-digit years, but when month names get implemented this will be helpful.
This commit is contained in:
parent
119dc042ab
commit
905f2ca152
Notes:
sideshowbarker
2024-07-17 00:16:31 +09:00
Author: https://github.com/karolba Commit: https://github.com/SerenityOS/serenity/commit/905f2ca152 Pull-request: https://github.com/SerenityOS/serenity/pull/17707 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/kleinesfilmroellchen Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ static ErrorOr<Vector<String>> month_lines_to_print(int month, int year)
|
|||
Vector<String> lines;
|
||||
|
||||
// FIXME: Both the month name and month header text should be provided by a locale
|
||||
TRY(lines.try_append(TRY(String::formatted(" {:02} - {:02} ", month, year))));
|
||||
TRY(lines.try_append(TRY(String::formatted("{:^20s}", TRY(String::formatted("{:02} - {:02}", month, year))))));
|
||||
TRY(lines.try_append(TRY(String::from_utf8("Su Mo Tu We Th Fr Sa"sv))));
|
||||
|
||||
int day_to_print = 1;
|
||||
|
|
Loading…
Reference in a new issue