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

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

Open
lichen2013 opened this issue Mar 28, 2018 · 0 comments
Open

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

lichen2013 opened this issue Mar 28, 2018 · 0 comments
Assignees

Comments

@lichen2013
Copy link

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"

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

2 participants