Skip to content

1.0.0

Compare
Choose a tag to compare
@DenverCoder1 DenverCoder1 released this 14 Dec 21:56
· 36 commits to main since this release
d8a3564

Features

Breaking Changes

  • The library now uses wcwidth for determining the length of a cell instead of len().
    • The wcswidth() function takes into account double-width characters (East Asian Wide and East Asian Fullwidth) and zero-width characters (combining characters, zero-width space, etc.), whereas len() determines the width solely based on the number of characters in the string.
    • In most cases, this will not affect the output of table2ascii.
    • To revert to using len() instead of wcswidth() pass use_wcwidth=False to table2ascii.
    • Note: The width of East Asian Wide and East Asian Fullwidth characters is up to the platform and font used. If the font used to display the wide characters does not make them take up exactly 2 character width, it may still not display correctly.
  • table2ascii.options.Options has a new option use_wcwidth. All options are required when manually creating an Options object.
  • Eight new fields have been added to TableStyle. If you are manually creating a TableStyle object, you can now provide symbols for the edges of merged table cells. This is not a mandatory change, but a warning will be printed if you do not provide these fields.

Meta

Full Changelog: 0.5.0...1.0.0