Skip to content

Commit

Permalink
fix: removed needed section
Browse files Browse the repository at this point in the history
  • Loading branch information
raulgotor committed Jul 14, 2024
1 parent ea896cf commit 85055c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions section.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def is_break(self):
def is_hidden(self):
return 'hidden' in self.flags

def _should_element_be_hidden(self, attribute):
return True if str(attribute) in ['True', 'yes'] \
else False if str(attribute) in ['False', 'no'] \
else self.size_y < 20

def is_address_hidden(self):
return self._should_element_be_hidden(self.style.hide_address)

Expand Down

0 comments on commit 85055c0

Please sign in to comment.