tdwright / contabs

Simple yet flexible tables for console apps.
MIT License
54 stars 20 forks source link

Implemented long string behaviour, including word wrap #27

Closed tdwright closed 6 years ago

tdwright commented 6 years ago

Long string handling

By adding a LongStringBehaviour property to columns, this change allows users to specify how long strings should be handled.

Users can choose from:

  1. Doing nothing (default behaviour)
  2. Truncating, with or without ellipsis (customisable; defaults to "...")
  3. Wrapping

When truncating or wrapping, the width can also be specified.

Minor changes