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

Possible to disable alignment for certain lines? #31

Closed
sefeng211 opened this issue Jan 1, 2021 · 3 comments
Closed

Possible to disable alignment for certain lines? #31

sefeng211 opened this issue Jan 1, 2021 · 3 comments
Labels

Comments

@sefeng211
Copy link

Hi,

I have a usecase that I want to add a line in between of some other lines, and I don't want the length of this line to be considered during alignment. Is it possible?

Thanks!

@BurntSushi
Copy link
Owner

I think the docs show what's possible. You could write a line without tabs. Or an empty line. Calling flush before and immediately after writing your line may work too, but I'm not sure.

@sefeng211
Copy link
Author

If I write a line without tabs, the rest of the lines are not aligned together with previous lines.

@BurntSushi
Copy link
Owner

Yeah, that's an intentional feature. See the examples in the docs. This crate has a pretty narrow focus on elastic tabstops with some limited customizations. If you need something more elaborate, you'll need to find another way.

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

No branches or pull requests

2 participants