Skip to content

Commit

Permalink
removed leading spaces form partstat and status attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
geier committed Oct 31, 2023
1 parent 930a5b5 commit 7d5e816
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions khal/khalendar/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,11 @@ def _alarm_str(self) -> str:
@property
def _status_str(self) -> str:
if self.status == 'CANCELLED':
statusstr = ' ' + self.symbol_strings['cancelled']
statusstr = self.symbol_strings['cancelled']
elif self.status == 'TENTATIVE':
statusstr = ' ' + self.symbol_strings['tentative']
statusstr = self.symbol_strings['tentative']
elif self.status == 'CONFIRMED':
statusstr = ' ' + self.symbol_strings['confirmed']
statusstr = self.symbol_strings['confirmed']
else:
statusstr = ''
return statusstr
Expand All @@ -582,11 +582,11 @@ def _status_str(self) -> str:
def _partstat_str(self) -> str:
partstat = self.partstat
if partstat == 'ACCEPTED':
partstatstr = ' ' + self.symbol_strings['accepted']
partstatstr = self.symbol_strings['accepted']
elif partstat == 'TENTATIVE':
partstatstr = ' ' + self.symbol_strings['tentative']
partstatstr = self.symbol_strings['tentative']
elif partstat == 'DECLINED':
partstatstr = ' ' + self.symbol_strings['declined']
partstatstr = self.symbol_strings['declined']
else:
partstatstr = ''
return partstatstr
Expand Down

0 comments on commit 7d5e816

Please sign in to comment.