sintaxi/terraform — pull request #18 by kennethormandy (2013-10-13 19:12:57+00:00)
Title: Adds failing test for escaping CSS error messages

Progress on https://github.com/sintaxi/harp/issues/35.

This test doesn’t entirely cover the problem. Basically, messages in CSS `content` must have quotes escaped as `\"`, and should also have special characters like `…` (which is: …) escaped as Unicode like this: `\2026`. If that doesn’t happen, the CSS will be invalid and the error messages can easily get cut off.

So, I’m not entirely sure if the fix belongs in Terraform, Harp, or the future error view module. It might make sense that the error messages would be escaped in Terraform, but the only reason they’d need to be escaped this way is because they appear in CSS. The only thing determining that is Harp, so maybe this belongs there for now and the other module in the future. I had already made the test when this occurred to me, so here we are.