Merging upstream version 2.2.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
4db980c3c4
commit
04b7f07412
9 changed files with 50 additions and 22 deletions
|
@ -4,7 +4,7 @@
|
|||
import string
|
||||
|
||||
from cli_helpers import utils
|
||||
from cli_helpers.compat import text_type, int_types, float_types, HAS_PYGMENTS
|
||||
from cli_helpers.compat import text_type, int_types, float_types, HAS_PYGMENTS, Token
|
||||
|
||||
|
||||
def truncate_string(
|
||||
|
@ -58,9 +58,9 @@ def override_missing_value(
|
|||
data,
|
||||
headers,
|
||||
style=None,
|
||||
missing_value_token="Token.Output.Null",
|
||||
missing_value_token=Token.Output.Null,
|
||||
missing_value="",
|
||||
**_
|
||||
**_,
|
||||
):
|
||||
"""Override missing values in the *data* with *missing_value*.
|
||||
|
||||
|
@ -248,10 +248,10 @@ def style_output(
|
|||
data,
|
||||
headers,
|
||||
style=None,
|
||||
header_token="Token.Output.Header",
|
||||
odd_row_token="Token.Output.OddRow",
|
||||
even_row_token="Token.Output.EvenRow",
|
||||
**_
|
||||
header_token=Token.Output.Header,
|
||||
odd_row_token=Token.Output.OddRow,
|
||||
even_row_token=Token.Output.EvenRow,
|
||||
**_,
|
||||
):
|
||||
"""Style the *data* and *headers* (e.g. bold, italic, and colors)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue