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

Set style to correctly render white space #2

Open
thlorenz opened this issue Jul 8, 2013 · 4 comments
Open

Set style to correctly render white space #2

thlorenz opened this issue Jul 8, 2013 · 4 comments

Comments

@thlorenz
Copy link
Owner

thlorenz commented Jul 8, 2013

term.term.element.style['white-space'] = 'pre'  // doesnt work in firefox but 

term.term.element.setAttribute('style', 'white-space: pre;') // does 
@max-mapper
Copy link

note on the second one, you will probably wanna do

var style = term.term.element.getAttribute('style')
style += 'white-space: pre;'
term.term.element.setAttribute('style', style)

@thlorenz
Copy link
Owner Author

thlorenz commented Jul 9, 2013

went out with 0.2.7 with this fix.
Thanks for the research :)

@thlorenz thlorenz closed this as completed Jul 9, 2013
@thlorenz thlorenz reopened this Jul 9, 2013
@thlorenz
Copy link
Owner Author

thlorenz commented Jul 9, 2013

Reopening this since just setting 'white-space: pre' broke other things and I unpublished this patch.
Possibly we need to apply this white-space thing on a line basis instead of just across the terminal itself?

@aaronbeall
Copy link

@thlorenz Just curious what was the "other things" that white-space: pre broke?

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

3 participants