docs: def add_date(self, date, lines):
          """
          Return the given `lines` with the `date` added in the right place (ie. to the beginning or to the end of the
          given lines, depending on the `add_date_to_bottom` property).
          """
          _lines = lines[:]
          _lines = trim(_lines)
  
          if self.add_date_to_bottom is None:
              add_date_to_bottom = is_top_down(lines)
          else:
              add_date_to_bottom = self.add_date_to_bottom
  
          if add_date_to_bottom:
              _lines.append(TextLine(''))
              _lines.append(DateLine(date))
          else:
              _lines.insert(0, TextLine(''))
              _lines.insert(0, DateLine(date))
  
          return trim(_lines)