Quote:
Originally Posted by kovidgoyal
use
r'\1 \2\3\4'
Note the r
|
Thanks very much for your reply, Kovid.
I've just tried your suggestion, but I'm still getting the same result as before, i.e. that the strings are being found but are being replaced with the literal string I've supplied, not the variables.
As an example, the number '22 100' shows up as '2\1 \2\3\4' (the non-breaking space is correctly being added) in the files generated from the recipe.
Any other hints greatly appreciated!