Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
klausbrunner committed Apr 2, 2024
1 parent 5398e41 commit 88c8584
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/e175/klaus/solarpos/PositionCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ static Stream<ZonedDateTime> getDatetimes(
private static final Map<Boolean, String> JSON_FORMATS =
Map.of(
true,
"""
"""
{"latitude":%.5f,"longitude":%5f,"elevation":%.3f,"pressure":%.3f,"temperature":%.3f,"dateTime":"%s","deltaT":%.3f,"azimuth":%.5f,"zenith":%.5f}"""
+ "\n",
false,
"""
"""
{"dateTime":"%6$s","azimuth":%8$.5f,"zenith":%9$.5f}"""
+ "\n");

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/e175/klaus/solarpos/SunriseCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private static String buildOutput(
case HUMAN -> {
if (showInput) {
sb.append(
"""
"""
latitude: %24.4f
longitude: %24.4f
date/time: %s
Expand Down Expand Up @@ -173,7 +173,7 @@ private static String buildOutput(
sb.append("{");
if (showInput) {
sb.append(
"""
"""
"latitude":%.5f,"longitude":%5f,"dateTime":%s,"deltaT":%.3f,"""
.formatted(latitude, longitude, formatDate(format, dateTime), deltaT));
}
Expand Down

0 comments on commit 88c8584

Please sign in to comment.