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

IE8 divs without new lines #1551

Closed
silviuburceadev opened this issue Aug 12, 2013 · 2 comments
Closed

IE8 divs without new lines #1551

silviuburceadev opened this issue Aug 12, 2013 · 2 comments

Comments

@silviuburceadev
Copy link

Hi.

I have some code in my editor, I can save it and reload it in the browser, but only in IE8 with a DIV as a wrapper for Ace, my code is written as a single liner.

I know that I can use a textarea instead, but I cannot do it, there are some extra business constraints so ... I really need a JS workaround for this scenario. Any ideas? I have also tried to add a white-space: pre-wrap; , but no luck ...

@nightwing
Copy link
Member

ie8 doesn't keep newlines in regular divs. Use pre or <div style="whitespace:pre"

@silviuburceadev
Copy link
Author

Thank you. It is not a JS solution, but it's a start.

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