title: multi line string formatting in python
body: <p>To begin with, I am working to a get a desired output like this:</p>
  
  <pre><code>*********************************************************************
                                   hello
  ********************************************************************* 
  </code></pre>
  
  <p>To achieve this I have assigned the <strong>desired output to a variable with multiline string</strong> and printing the same with <em>format</em>.</p>
  
  <pre><code>$ cat varibale.py 
  decorator = """ **********************************************************************
                                 {}
              ********************************************************************** """
  print(decorator.format("hello"))
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>**********************************************************************
                                 hello
              **********************************************************************
  </code></pre>
  
  <p>The issue with above approach is the <strong>extra spaces in the third line of output</strong> which is looking odd.</p>
  
  <p><strong>I am able to achieve this in the following way</strong>:</p>
  
  <pre><code>$ cat varibale.py 
  decorator = """ **********************************************************************
                               {}
  ********************************************************************* 
  """
  print(decorator.format("hello"))
  </code></pre>
  
  <p>Output: </p>
  
  <pre><code> **********************************************************************
                               hello
  ********************************************************************* 
  </code></pre>
  
  <p>But this way my code doesn't look good, as it is not following the indentation.</p>
  
  <p>Please suggest the right way to achieve the desired output.</p>