Apply formatting after string formatting
<p>I don't know if it's possible with common string formatting or advanced string formatting, so thought to ask...</p>

<p>I have this simplified snippet:</p>

<pre><code>&gt;&gt;&gt; s = 'some string'
&gt;&gt;&gt; y = 10
&gt;&gt;&gt; '&lt;td&gt;%s&lt;/td&gt;&lt;td&gt;%4d&lt;/td&gt;' % (s, y)
'&lt;td&gt;some string&lt;/td&gt;&lt;td&gt;  10&lt;/td&gt;'
</code></pre>

<p>I want to pad numeric cell with <code>&amp;nbsp;</code> as my html backend doesn't accept text aligning.
Is there easy way to format numerical value with <code>&amp;nbsp;</code> instead empty space?</p>
