Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rows added where field has \n adds multiple rows #28

Open
userlerueda opened this issue Nov 1, 2018 · 2 comments
Open

Rows added where field has \n adds multiple rows #28

userlerueda opened this issue Nov 1, 2018 · 2 comments

Comments

@userlerueda
Copy link

userlerueda commented Nov 1, 2018

I am experiencing a problem where adding a row that has strings with \n in them will produce more rows in the table.

e.g.
Adding the following row:

[u'change hostname', u'hostname', [], u'validator1', u'12345678', [], u'this is a text\n\n\n\n\n\n\n\n\n\n']

Produces a table with multiple lines:

+-----------------+--------------+------------+------------+------------+-----------+----------------+
|   description   | templateName | tenantList | validators | templateId | sitesList |    payload     |
+-----------------+--------------+------------+------------+------------+-----------+----------------+
| change hostname |   hostname   |     []     | validator1 |  12345678  |     []    | this is a text |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
+-----------------+--------------+------------+------------+------------+-----------+----------------+
@eeyrw
Copy link

eeyrw commented Dec 26, 2018

'\n\n\n\n\n\n\n\n\n\n' is meant for newline. I think it should be like this.

@archeryguru2000
Copy link

However, what if one wanted to wrap a lengthy, multi-word title---e.g., "Australian Cities with Large Populations" formatted as "Australian Cities\nwith Large Populations"---in order to keep the column width reduced in size?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants