From 0dfe1c9e2780469e3a4696e8fb3e6f717a7ebeb7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 16 Sep 2022 11:09:35 +0200 Subject: Adding upstream version 3.1.0. Signed-off-by: Daniel Baumann --- docs/doubletable.rst | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/doubletable.rst (limited to 'docs/doubletable.rst') diff --git a/docs/doubletable.rst b/docs/doubletable.rst new file mode 100644 index 0000000..da322ab --- /dev/null +++ b/docs/doubletable.rst @@ -0,0 +1,33 @@ +.. _doubletable: + +=========== +DoubleTable +=========== + +DoubleTable uses `box drawing characters`_ for table borders. On Windows terminaltables uses `code page 437`_ +characters. However there is no equivalent character set for POSIX (Linux/OS X). Python automatically converts CP437 +double-line box characters to Unicode and displays that instead. + +.. image:: doubletable.png + :target: _images/doubletable.png + +Gaps on Windows 10 +================== + +Like SingleTable the console on Windows 10 changed the default font face to ``Consolas``. This new font seems to show +gaps between lines. Switching the font back to ``Lucida Console`` eliminates the gaps. + +Gaps on POSIX +============= + +There is no easy trick for POSIX like there is on Windows. I can't seem to find out how to force terminals to eliminate +gaps vertically between Unicode characters. + +API +=== + +.. autoclass:: terminaltables.DoubleTable + :members: column_max_width, column_widths, ok, table_width, table + +.. _box drawing characters: https://en.wikipedia.org/wiki/Box-drawing_character +.. _code page 437: https://en.wikipedia.org/wiki/Code_page_437 -- cgit v1.2.3