Fix broken inline CSS

The fix for #606 broke all inline CSS, and this fixes it correctly.