View Single Post
Old 09-08-2014, 01:10 PM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
The eval() function docstring has a space after the { which is why it doesn't trigger the problems.
Yes, that may be.

Quote:
If this is the only string where you have a problem simply special case it, make it something like

val = _('<span %(code)s>{}</span> and <span %(code)s>{}</span>').format('@{@', '@}@')
That was my plan B, yes. But first I wanted to make sure what happening and why. Thanks.
Jellby is offline   Reply With Quote