title: How to remove extra indentation of Python triple quoted multi-line strings?
body: <p>I have a python editor where the user is entering a script or code, which is then put into a main method behind the scenes, while also having every line indented. The problem is that if a user has a multi line string, the indentation made to the whole script affects the string, by inserting a tab in every space. A problem script would be something so simple as:</p>
  
  <pre><code>"""foo
  bar
  foo2"""
  </code></pre>
  
  <p>So when in the main method it would look like:</p>
  
  <pre><code>def main():
      """foo
      bar
      foo2"""
  </code></pre>
  
  <p>and the string would now have an extra tab at the beginning of every line. </p>