title: textwrap.dedent not working when there are newlines
body: <p>I am confused to why textwrap.dedent doesn't work when the <code>details</code> variable contains <code>\n</code> or newlines but it works if there are none. Is there a workaround to make this work?</p>
  
  <pre><code>from textwrap import dedent
  
  log_msg = {
      'log_id': 'testid',
      'log_level': 'CRITICAL',
      'message': 'Complete export to no_cat_products.csv',
      'details': 'asdasdasdasdasdasd\n[asdasdasdasdasd\nasdasdasd\n',
      'source_application': 'testing.py',
      'timestamp': 123445657
  }
  
  message = dedent(f"""
      ID: {log_msg['log_id']}
      Log Level: {log_msg['log_level']}
      Message: {log_msg['message']}
  
      Details:
      {dedent(log_msg['details'])}
  
      Source Application: {log_msg['source_application']}
      Created: {log_msg['timestamp']}
  """)
  
  print(message)
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>        ID: testid
          Log Level: CRITICAL
          Message: Complete export to no_cat_products.csv
  
          Details:
          asdasdasdasdasdasd
  [asdasdasdasdasd
  asdasdasd
  
  
          Source Application: testing.py
          Created: 123445657
  </code></pre>