Skip to content

Releases: DenverCoder1/table2ascii

v1.1.3

20 Oct 16:46
3fe8b5c
Compare
Choose a tag to compare

What's Changed

  • fix: Prevent text wrapping when already within width (avoids issue with manually inserted line breaks being ignored - #112) by @DenverCoder1 in #113

Full Changelog: v1.1.2...v1.1.3

v1.1.2

29 Aug 12:49
c4ef719
Compare
Choose a tag to compare

Fixes

Full Changelog: v1.1.1...v1.1.2

v1.1.1

28 Feb 12:08
9adec7a
Compare
Choose a tag to compare

Bug Fixes

  • Include py.typed in package data for mypy to recognize types (#100)

Meta

  • All exceptions, warnings, and SupportsStr are now importable directly through the table2ascii module (#94)
  • All class and data references in the docs were fixed to link to the proper documentation (#94)
  • Changed TableStyle.set() example to one that will not throw an exception (#94)

Full Changelog: v1.1.0...v1.1.1

1.1.0

29 Dec 00:51
c076989
Compare
Choose a tag to compare

Features

  • Added Alignment.DECIMAL for aligning numbers to a decimal point in #90
  • Added ability to align all columns with a single Alignment instead of a list in #91
  • Support for aligning numbers separately from other strings by passing number_alignments to table2ascii in #92

Meta

  • Moved version number to pyproject.toml in #87

Full Changelog: v1.0.4...v1.1.0

1.0.4

19 Dec 21:50
b969185
Compare
Choose a tag to compare

Bug Fixes

  • Made dependencies and other build arguments static by @ohjunseung in #86

New Contributors

Full Changelog: v1.0.3...v1.0.4

1.0.3

19 Dec 00:15
d22c423
Compare
Choose a tag to compare

Bug Fixes

Meta

Full Changelog: v1.0.2...v1.0.3

1.0.2

18 Dec 01:07
ebc0b72
Compare
Choose a tag to compare

What's Changed

  • Added invalid column width error for negative column widths by @DenverCoder1 in #83

Meta

Full Changelog: 1.0.1...v1.0.2

1.0.1

14 Dec 22:55
6e3fdb6
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.0.0...1.0.1

1.0.0

14 Dec 21:56
d8a3564
Compare
Choose a tag to compare

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

0.5.0

31 Oct 19:17
88be598
Compare
Choose a tag to compare

Features

  • Added plain to preset table styles in #50
>>> table2ascii(header=[1,2,3,4], body=[[5,6,7,8], [9,10,11,12]], style=PresetStyle.plain)
 1   2    3    4  
 5   6    7    8  
 9   10   11   12
  • Added cell_padding configurable option in #52
>>> table2ascii(header=['A','B','C'], body=[[1,2,3]], footer=[5,6,7], first_col_heading=True, cell_padding=0)
╔═╦═══╗
║AB C║
╟─╫───╢
║12 3║
╟─╫───╢
║56 7║
╚═╩═══╝

Meta

  • refactor: Support for mypy linting in #51
  • ci: Add support for Python 3.11 (Pyright linting) in #56

Full Changelog: 0.4.0...0.5.0