Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

string wrap #18

Open
celevra opened this issue Mar 2, 2016 · 13 comments
Open

string wrap #18

celevra opened this issue Mar 2, 2016 · 13 comments

Comments

@celevra
Copy link

celevra commented Mar 2, 2016

hi,

is there the possability to also wrap long strings (without spaces)?

regards

celevra

@jamestalmage
Copy link
Owner

Can you give an example of what it does now, vs what you want it to do?

@celevra
Copy link
Author

celevra commented Mar 8, 2016

now it does

├────────────────────┼──────────┼──────────┼────────────────────────────────────────────────────────────┼──────────┼──────────────────────────────────────────────────┤
│ ns                 │ SSHFP    │ 3600     │ 2 2                                                        │ false    │                                                  │
│                    │          │          │ b07ec6d71eb48690e9961a225d3c7e319f2582634ad055687e94271b1… │          │                                                  │
├────────────────────┼──────────┼──────────┼────────────────────────────────────────────────────────────┼──────────┼──────────────────────────────────────────────────┤

and i want it like that

├────────────────────┼──────────┼──────────┼────────────────────────────────────────────────────────────┼──────────┼──────────────────────────────────────────────────┤
│ ns                 │ SSHFP    │ 3600     │ 2 2                                                        │ false    │                                                  │
│                    │          │          │ b07ec6d71eb48690e9961a225d3c7e319f2582634ad055687e94271b   │          │                                                  │
│                    │          │          │ b07ec6d71eb48690e9961a225d3c7e319f2582634ad055687e94271b   │          │                                                  │
│                    │          │          │ b07ec6d71eb48690e9961a225d3c7e319f2582634ad055687e94271b   │          │                                                  │
├────────────────────┼──────────┼──────────┼────────────────────────────────────────────────────────────┼──────────┼──────────────────────────────────────────────────┤

@jamestalmage
Copy link
Owner

How do you propose users enable that behavior vs. the current default?

I'm thinking some sort of option flag, but not sure what to call it.

@celevra
Copy link
Author

celevra commented Mar 9, 2016

Like CSS break-word?

Von: James Talmage [email protected]
Gesendet: 09.03.2016 11:24 nachm.
An: jamestalmage/cli-table2
Cc: Philipp Zeitschel
Betreff: Re: [cli-table2] string wrap (#18)

How do you propose users enable that behavior vs. the current default?

I'm thinking some sort of option flag, but not sure what to call it.


Reply to this email directly or view it on GitHub.

@jamestalmage
Copy link
Owner

sure, but decamelized: breakWord

@jamestalmage
Copy link
Owner

@celevra Want to make a PR

@celevra
Copy link
Author

celevra commented Mar 11, 2016

i will do it, but i'm the whole next week on CeBit, after that i will look into it

@msahil-juniper
Copy link

I request you to please fix the text wrapping issue..!

@jamestalmage
Copy link
Owner

PR Welcome!

@mikeerickson
Copy link

Did this ever happen? I need this very thing myself. I am using latest build, but I dont see how to configure this.

@tecfu
Copy link

tecfu commented Jul 27, 2017

https://www.github.com/tecfu/tty-table provides text wrapping by default.

@GiladShoham
Copy link

Hi,
What is the status of this feature?

@ORESoftware
Copy link

ORESoftware commented Sep 5, 2018

Still need this in 2018. The readme says: "Automatic word wrapping." but now I don't know what that means if it doesn't mean this feature.

Ok I read the basic-usage.md file mentioned in the readme file. Looks like you need to manually add \n newlines to your text to get it to wrap to the next row.

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

No branches or pull requests

7 participants