IBM-Cloud / IBM-Cloud/ibm-cloud-cli-sdk

Table break when the content to display contains "\t"

Open
#112 0 comments 0 reactions 1 assignee View on GitHub

@weieigao is already working on this.

Since Sep 4, 2018.

Dominant language
Go
Stars
35
Forks
53
Avg merge
1d 15h
Merged PRs (30d)
16

Description

For code:

table := cmd.ui.Table([]string{"ID", "Name", "Type", "Content", "Proxiable", "Proxied", "TTL"})
for _, i := range records.Result {
         table.Add(i.ID, i.Name, i.Type, i.Content, strconv.FormatBool(i.Proxiable), strconv.FormatBool(i.Proxied), strconv.Itoa(i.Ttl))
}
table.Print()

I get:

277d8015adaa9547

content is: "123\t555\twww.test.com"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.