Skip to content

Commit

Permalink
Tweak format of position.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwatsonforster committed Sep 23, 2023
1 parent 47fca56 commit 0289a9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airpower/aircraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def _drawaircraft(self, when):
apdraw.drawaircraft(self._x, self._y, self._facing, self._name, self._altitude, when)

def _position(self):
return "%s %d %s" % (
return "%-9s %-3s %2d" % (
aphexcode.fromxy(self._x, self._y),
self._altitude,
apazimuth.toazimuth(self._facing)
apazimuth.toazimuth(self._facing),
self._altitude
)

def _report(self, s):
Expand Down

0 comments on commit 0289a9b

Please sign in to comment.