Skip to content

Commit

Permalink
Refactored TableRenderer pipeline.
Browse files Browse the repository at this point in the history
Uses coroutines now.

Broke out visual renderer components into a subclass that doenst need to
be used by the data renderers like JSON and CSV.

Added prelim support for detection of width changes and recalculating
widths to render text more accurately after a change.
  • Loading branch information
mayfield committed Apr 7, 2017
1 parent 5dc4e9f commit 5ea7bc6
Show file tree
Hide file tree
Showing 3 changed files with 342 additions and 276 deletions.
2 changes: 1 addition & 1 deletion shellish/command/supplement.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _format_usage(self, *args, **kwargs):

def _join_parts(self, parts):
return VTMLBuffer('').join(x for x in parts
if x not in (None, argparse.SUPPRESS))
if x not in (None, argparse.SUPPRESS))

def _get_type_label(self, typeattr):
if isinstance(typeattr, argparse.FileType) or typeattr is open:
Expand Down
Loading

0 comments on commit 5ea7bc6

Please sign in to comment.