Skip to content

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

Open

Description

@userlerueda

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 |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
|                 |              |            |            |            |           |                |
+-----------------+--------------+------------+------------+------------+-----------+----------------+

Activity

  1. eeyrw commented on Dec 26, 2018

    @eeyrw

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

  2. archeryguru2000 commented on May 6, 2019

    @archeryguru2000

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions