File: singletable.rst

package info (click to toggle)
terminaltables3 4.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,328 kB
  • sloc: python: 2,691; makefile: 93; sh: 11
file content (26 lines) | stat: -rw-r--r-- 809 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.. _singletable:

===========
SingleTable
===========

SingleTable uses `box drawing characters`_ for table borders. On POSIX (Linux/OS X) terminaltables uses ``Esc ( 0``
characters while on Windows it uses `code page 437`_ characters.

.. image:: singletable.png
    :target: _images/singletable.png

Gaps on Windows 10
==================

Unfortunately 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.

API
===

.. autoclass:: terminaltables.SingleTable
    :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