3 ms·
Not really feedback, but a matter of attention-to-detail: Do you have one too many '%' in your document.write(...google analytics) code? It throws a visible '%
by rdj 18y ago
Not really feedback, but a matter of attention-to-detail:
Do you have one too many '%' in your document.write(...google analytics) code? It throws a visible '%' at the very bottom of your page.
- witten 18y agoThanks, I appreciate it. I think I got a little over-zealous in escaping my %s. Interestingly, in Python, "%%%s" % "foo" != "%%foo"
- lacker 18y agoIt works just like \ in standard unix parsing - you escape the escape character by doubling it. So in "%%%s": "%%" -> "%" "%s" -> "foo" for a result of "%foo".
- witten 18y agoRight, but the escaping by doubling does not work in Python unless it's in a format string. So "%%foo" does not count as escaped. That's what threw me off.