original_docstring: Render self.body with space above and/or below.
docstring: Render self.body with space above and/or below.
docstring_tokens: Render self . body with space above and / or below .
code: def render(self, size, focus=False):
          """Render self.body with space above and/or below."""
          (maxcol, maxrow) = size
          top, bottom = self.filler_values(size, focus)
          
          if self.height_type is None:
              canv = self.body.render((maxcol,), focus)
          else:
              canv = self.body.render((maxcol,maxrow-top-bottom),focus)
          canv = CompositeCanvas(canv)
          
          if maxrow and canv.rows() > maxrow and canv.cursor is not None:
              cx, cy = canv.cursor
              if cy >= maxrow:
                  canv.trim(cy-maxrow+1,maxrow-top-bottom)
          if canv.rows() > maxrow:
              canv.trim(0, maxrow)
              return canv
          canv.pad_trim_top_bottom(top, bottom)
          return canv
code_tokens: def render ( self , size , focus = False ) : ( maxcol , maxrow ) = size top , bottom = self . filler_values ( size , focus ) if self . height_type is None : canv = self . body . render ( ( maxcol , ) , focus ) else : canv = self . body . render ( ( maxcol , maxrow - top - bottom ) , focus ) canv = CompositeCanvas ( canv ) if maxrow and canv . rows ( ) > maxrow and canv . cursor is not None : cx , cy = canv . cursor if cy >= maxrow : canv . trim ( cy - maxrow + 1 , maxrow - top - bottom ) if canv . rows ( ) > maxrow : canv . trim ( 0 , maxrow ) return canv canv . pad_trim_top_bottom ( top , bottom ) return canv
short_docstring: Render self.body with space above and/or below.
short_docstring_tokens: Render self . body with space above and / or below .
comment: """Render self.body with space above and/or below."""