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

view box is trimming whitespace #210

Closed
abridgett opened this issue Oct 18, 2016 · 3 comments
Closed

view box is trimming whitespace #210

abridgett opened this issue Oct 18, 2016 · 3 comments

Comments

@abridgett
Copy link

I'd expect the edit view and normal read view to display the same text. For example I often have a file set to this (leading space on each line):

 export AWS_ACCESS_KEY_ID=....
 export AWS_SECRET_ACCESS_KEY=...

So that if someone cuts and pastes into a shell window then at least it's not going into the shell history (as they normally don't record commands with a leading space).

@annejan
Copy link
Member

annejan commented Oct 18, 2016

I agree that the trim should be optional and default to off.

@annejan
Copy link
Member

annejan commented Oct 19, 2016

The read view is a QTextBrowser while the edit is a QPlainTextEdit which explains the difference in presentation.
screen shot 2016-10-19 at 20 26 52
I have replaced spaces with   to keep the formatting in the QTextBrowser as-well . .

@abridgett
Copy link
Author

Sweet - fantastic - thanks so much!

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

No branches or pull requests

2 participants