S
S
sega111sega2022-01-20 00:51:05
css
sega111sega, 2022-01-20 00:51:05

How to leave a line break and display tables in a normal way in atom runner?

Good day.

In atom runner, when displaying a table, I get it uneven.
Example:

mytable = PrettyTable()
mytable.field_names = ["column 1", "column 2"]
mytable.add_rows(
    [
        ["string", 1],
        ["string", 2],
    ]
)

mytable.align = "c"
print(mytable)


Sample output:
+----------+----------+
| column 1 | column 2 |
+----------+----------+
| string | 1 |
| string | 2 |
+----------+----------+

This happens because two properties have been added to the atom-runner.less file: word-break: break-all; and white-space: pre-line; (lines are wrapped during output, which makes viewing more convenient)
I would like to look at tables normally (with a sufficiently stretched output window, leave the properties for text wrapping, or replace them with some others with the same result, which, unfortunately, are not known to me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alfieros, 2022-01-20
@mrsexy

white-space: nowrap;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question