Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Issue #364 - Fix IE9 blank cell bug #365

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
5 participants

In IE9, if you have whitespace and/or carriage returns between table
elements, it causes IE9 to render a blank column and pushes all the
content one column to the right. It seems the best solution is to
strip it out of the template string when you compile a template.

If you search google for "IE9 renders blank cells" you'll find lots of
references to this problem.

@neenhouse neenhouse Issue #364 - IE9 whitespace bug fix
In IE9, if you have whitespace and/or carriage returns between table
elements, it causes IE9 to render a blank column and pushes all the
content one column to the right.  It seems the best solution is to
strip it out of the template string when you compile a template.

If you search google for "IE9 renders blank cells" you'll find lots of
references to this problem.
c171d70

wycats commented on c171d70 Dec 24, 2012

Isn't the solution to not have whitespace in the template?

Owner

neenhouse replied Dec 29, 2012

Yes, but if you have complex multi line table templates, putting it all on one line makes it very unreadable and a pain to manage (because carriage returns also cause the IE9 problem).

Collaborator

wagenet commented Feb 13, 2013

@neenhouse Is this something you'd be able to update. Unfortunately, it doesn't merge cleanly anymore.

Collaborator

wagenet commented Feb 13, 2013

Looks like #357 is related.

I also just encountered this issue. Random blank columns were being introduced all over my table. Was this issue closed because it's been solved and I simply have an old version of Handlebars? I believe I downloaded it within the last couple months.

Is there a nice solution out there that doesn't require me to flatten my template in the file? I'd like the template the remain readable, even if there are other code-based steps to solve this.

Collaborator

kpdecker commented Apr 7, 2013

Closing this issue so we can consolidate whitespace handling issues on #336

@kpdecker kpdecker closed this Apr 7, 2013

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