python subbing variables into string
<pre><code>sample_string = """

&lt;div&gt;

&lt;h1&gt; 

%s

&lt;h1&gt;

Image:

%s

&lt;br&gt;

&lt;p&gt;

text text text text text text

&lt;/p&gt;

%s

&lt;p&gt;

text text text text text text text text text more text this is just more text

in a paragraph tag

&lt;/p&gt;

&lt;/div&gt;"""

&gt;&gt;&gt; print sample_string

&lt;div&gt;

&lt;h1&gt; 

var1

&lt;h1&gt;

Image:

var2

&lt;br&gt;

&lt;p&gt;

text text text text text text

&lt;/p&gt;

var3

&lt;p&gt;

text text 

&lt;/p&gt;

&lt;/div&gt;
</code></pre>

<p>I am attempting to sub in vars into a string. While I am having no issues subbing in variables, I am finding if I return the string, some of the text is getting cut off at the bottom. What is causing this </p>
